在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → TIA openness 开发教程

TIA openness 开发教程

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:0.78M
  • 下载次数:13
  • 浏览次数:536
  • 发布时间:2020-10-28
  • 实例类别:一般编程问题
  • 发 布 人:robot666
  • 文件格式:.pdf
  • 所需积分:2
 

实例介绍

【实例简介】
使用C#编程语言控制TIA博途软件,对运控对象进行组态控制。
Openness中的名称 功能视图中的名称数据类型 默认访问方式可能的值 Sensor Sensor[1] Interface Operating mode R/W 1:两相 HSC Operatingmode 2:AB计数器 3:AB计数器,四倍 频 Sensor Sensor[1] Interface Input address string R 有效输入地址(是报文 ProfiDriveIn (TelegrammldentIn) 的一部分)。 有效变量名 Sensor Sensor[1] Interface Output address string 有效输出地址(是报文 Profidrive out (Telegrammldentout) 的一部分)。 有效变量名 Sensor Sensor[ 1]. PassiveHoming Input homing switch string 有效输入地址 DigitalInput 有效变量名 TIA Portal Openness中的工艺对象参数 A5E40959075AA,03/2017 以下 To_ PositioningAxis的附加参数可接映射工艺对象数据块变量: Openness和数据块中的名称 数据类型 默认访问方式 Actor. DataAdaption int R Actor Direction mode short Actor. Drive Parameter Max Speed float Actor Drive Parameter. Pulses Revolution R/ Actor Drive Parameter Reference Speed float R Actor Interface AddressinAREa byte Actor Interface Addressin DB NUMBER ushort Actor Interface AddressIn OFFSET uint Actor Interface Addressin RiD uint Actor Interface Address out area byte RRRRRR Actor. Interface Address out DB NUMBer ushort Actor Interface Address, OFFSet Actor Interface Address Out,RiD uint Actor Interface Drive Ready Input AREA byte Actor. Interface Drive ReadyInput DB_NUMBER ushort ActorInterface.riveReadylnputOFFSET uint Actor Interface Drive Ready Input RID uint RRRRR Actor Interface Enable Drive Output AREA byte Actor Interface Enable Driveoutput DB NUMBER ushort Actor Interface Enable DriveOutput OFFSET uint R Actor Interface Enable DriveOutput RID uint Actor Interface PTo Actor. Inverse Direction bool Actor. Type ActualPosition float Actual Velocity float ControlPanel Input Command Command[1]. Acceleration float ControlPanel Input Command Command[1].Jerk float RRRRRR ControlPaneLInput Command Command[1].Param ControlPanel Input Command Command[i] Position float R ControlPaneL Input Command Command[1]. ReqCounter int ControlPanel Input Command Command[1]. Type int RRR ControlPanel Input Command Command[1].Velocity float ControlPaneL Input. EsLifeSign ControlPanel Input Timeout nt ControlPanel outpur. command. command accounter it ControlPanel Output Command Command[1]. Done bool ControlPanel Output CommandCommand[ 1]. ErrorID ushort Controlpanel.Output.commaNd.Command[1].errorinfoushort RRRRRRR ControlPanel Output. RTLife Sign int DynamicDefaults Acceleration DynamicDefaults Deceleration float R/W DynamicDefaults. Emergency Deceleration float R TIA Portal Openness中的工艺对象参数 A5E40959075AA,03/2017 Openness和数据块中的名称 数据类型 默认访问方式 DynamicDefaults Jerk float R/W DynamicLimits. MaxVelocity float R/W DynamicLimits. MinVelacity float R/W ErrorBits. AdaptionError bool ErrorBits. Communication Fault bool R ErrorBits. ConfigFault bool R Error Bits. DirectionFault bool R ErrorBits DriveFault bool ErrorBits Followingerror ErrorBits. HwLimit bool R ErrorBits. HWUsed bool R ErrorBits. PositioningFault bool ErrorBits SensorFault bool R ErrorBits. swlimit bool ErrorBits. SystemFault bool R FollowingError. EnableMonitoring bool R/W FollowingError Maxvalue float R/W FollowingError. Min value float R/W FollowingError Min Velocity R/W Homing Approach Direction bool R/W Homing. ApproachVelocity loat R Homing AutoReversal bool R/W Homing Referencing velocity float R Internal Internal[1.ld short R Internal. Internall1value float R/W Internal Internal[2].Id short R/W Internal Internal[2]Value R/W Internal. Internal3.ld short R/W Internal Internal 3]Value float R/W Internal Internal[4].Id short R Internal. Internall4]Value float R/W Mechanics Lead Screw float R/W Modulo Enable bool R/W Modulo Length float R Modulo. startvalue float R/W Position float R Position Control. Kpc float R/W Position controlKv float R Positioningmonitoring Min Dwell Time float R Positioningmonitoring tolerance Time float R/W PositioningMonitoring Window float R/W Positionlimits hw.active bool R/W Positionlimits hw max switchAddress aREA byte PositionLimits_HW. MaxSwitchAddress DB_ NUMBER ushort PositionLimits_HW. MaxSwitchAddress OFFSET uint RRR TIA Portal Openness中的工艺对象参数 A5E40959075AA,03/2017 Openness和数据块中的名称 数据类型 默认访问方式 Positionlimits hw.maxSwitchAddress RID uint Positionlimits hw. maxswitchLevel 000 Positionlimits hw. min SwitchAddress arEA byte PositionLimits_HW.MinSwitchAddress DB_NUMBER ushort Positionlimits hw. min SwitchAddress ofFSet uint Position limits Hw. min SwitchAddress RiD uint RRR Positionlimits hw. min SwitchLevel boo Positionlimits sw. Active bool Positionlimits sw. max Position Positionlimits sw. min Position float Sensor Sensor[1].ActiveHoming. DigitalInputAddress byte AREA Sensor Sensor[1].ActiveHoming. DigitalInputAddress ushort R DB NUMBER Sensor. Sensor[1].ActiveHoming. DigitalInputAddress uint OFFSET Sensor Sensor[1].ActiveHoming DigitallnputAddress RID Sensor Sensor[1. ActiveHoming Home Offset float Sensor. Sensor[1].Active Homing Mode nt R/ Sensor. Sensor[1].Active Homing. SideInput R/ Sensor. Sensor[1]. ActiveHoming SwitchLevel R/ Sensor Sensor[ 1]. Data Adaption int R/ Sensor Sensor[1]Interface AddressIn AREA byte Sensor. Sensor[1] Interface AddressIn DB_NUMBER ushort Sensor. Sensor[1] Interface AddressIn OFFSET uint Sensor. Sensor[1] Interface AddressIn RID int Sensor Sensor[1]Interface. AddressOut AREA SensorSensor[1] Interface. AddressOut DB_NUMBER ushort RRRRRRR Sensor. Sensor[1]Interface. Addressout OFFSET uint Sensor. Sensor[1] Interface. AddressOut RID uint Sensor. Sensor[1] Interface HSC uint Sensor Sensor[1]Interface. Number uint R∧ Sensor Sensor[1].Interface Type nt Sensor Sensor[1].Inverse Direction bool R/ Sensor. Sensor[1]. Mounting Mode Sensor Sensor[ 1. Parameter Determinable Revolutions uint R/ Sensor. Sensor[1]. Parameter Distance Per Revolution Sensor. Sensor[]. Parameter. Fine Resolution Xist1 uint R Sensor. Sensor[1].Parameter. Fine ResolutionXist2 RW Sensor. Sensor[]. Parameter Resolution Sensor Sensor[1].Parameter. Steps PerRevolution nt SensorSensor[ 1].PassiveHoming DigitallnputAddress yue R AREA Sensor Sensor[1]. PassiveHoming DigitallnputAddress ushort DB NUMBER Sensor Sensor[1].PassiveHoming DigitalInputAddress OFFSET TIA Portal Openness中的工艺对象参数 A5E40959075AA,03/2017 Openness和数据块中的名称 数据类型 默认访问方式 Sensor Sensor[ 1]. PassiveHoming DigitallnputAddress RId uint Sensor Sensor[1].PassiveHoming. Mode R/W Sensor Sensor[1].PassiveHoming SideInput bool R/W Sensor Sensor[1].PassiveHoming SwitchLevel bool R/W Sensor Sensor[1]. System R/W Sensor Sensor[1].Type int R/W Simulation Mode uint R/W Standstill Signal IndWell Time loat R StandstillSignal. velocity Threshold float R/W StatusBits. Accelerating bool R Status Bits. Activated bool Status Bits. Axis simulation bool Status Bits command Tableactive bool StatusBits ConstantVelocity bool Status Bits Controlpanelactive bool Status Bits. Decelerating bool RRRRRRRR Status Bits Done bool StatusBits. DriveRead bool Status Bits. Enable Status Bits error bool StatusBits. Homing command bool Status Bits. Homing Done bool RRRRR Status Bits. HWLimitMaxActive bool Status Bits. HWLimitMin Active bool Status Bits non position controlled bool StatusBits. Positioning command bool StatusBits. RestartRequired bool Status Bits standstill bool Status Bits. swlimitMaxActive Status Bits swlimitmin Active bool Status Bits. velocity command bool StatusDrive Adaption State RRRRRRRRRRRRRR Status Drive. Communication OK bool StatusDrive InOperation bool StatusPositioning Distance float StatusPositioning Followingerror float StatusPositioning. T argetPosition float Status Sensor Status Sensor[1. AbsEncoderOffset float Status Sensor Status Sensor[1].Adaption State StatusSensor Status Sensor[1). CommunicationOK bool RRRRRRRRR Status Sensor Status Sensor[1]. State Status Sensor[1]. State Units. LengthUnit short R/W Velocity TIA Portal Openness中的工艺对象参数 A5E40959075AA,03/2017 以下 TO CommandAble的附加参数不能疸擴映射工艺对数据块变量: Openness中的名称 数据类型默认访问方式可能的值 Warningenabled bool R/ TRUE:警告已启用 FALSE:警告已禁用 UseAxisParameters From int/string R/ 轴编号,“轴示例,轴名称 以下 TO CommandAble的附加参数可直接映射工艺对象数据块变量 Openness中的名称 数据类型赋认访问方式可能的值 Command Command[1.32].Type short R/ 命合类型 0:“清空"(Empy)命爷 2:“保持”(Hod)命爷 5:“相对定位”( Relative positioning)命合 6:“绝对定位( Absolute positioning)命合 7:“ Velocit! y setpoint"命合 151:"Wai"命合 Command.command[1.32].positionfloat R/ 命合的目标位置/行进距离 Command Command[1.32].Velocity float R/ 速度命合 Command Command[1.32].Duration R/ 持续时间命合 Command Command[1.32].Nextste short R/W 用于切换到下一条命合的模式 完混 成命合 合运动 Command.command(1..32].stepcodeushort R/ 命合步代码 更多信息 更多信息,请访问《 SIMATIC S7-1200 Motion control功能手册》 (https://support.industrysiemens.com/cs/cn/zh/view/109741731) TIA Portal Openness中的工艺对象参数 8 A5E40959075AA,03/2017 2 D_Compact的参数 疸接映射到背景数据块的参数 在下表中,列出了与DB编辑器( TIA Porta)中名称相同的 Openness参数名称。 组态中的名称 Openness中的名称 Openness赋认值 默认访问值范围 TIA Portal) 中的数据 方式 类型 Setpoint 0.0 写入 在自动模式下的PD控制器设定 值 np 0.0 过程值 Input PeR short 写人 模拟量过程值 Disturbance 0.0 写入 扰动变量或预控制值 Manualenable 写入 True=激活手动模式 ManualValue float 0.0 写入 该值用作手动模式下的输出值 ErrorAck bool False TUe=复位EoBs和 Warning Reset False 写入TUe=重新启动控制器 ModeActivate bool False 写入 True=切换为Mode参数中保存 的操作模式 ScaledInput float 0.0 写入 标定的过程值 Output float 0.0 写入 输出值 Output_PER short 写入 模拟量输出值 Output PWM bool False 写入 True=脉宽调制输出值 SetpointLimit_H bool False 写入 True=已达到设定值的绝对值上 限 SetpointLimit_L bool False 写入 True=已达到设定值的绝对值下 限 InputWarning-H bool False True=过程值已达到或超出警告 的上限 Inputwarning L bool False 写入 True=过程值已经达到或低于警 告的下限 State short 写入PD控制器的当前操作模式 Error bool False 写入 True=在此周期内至少一条错误 消息处于未决状态 orbiTs 写入显示未决的错误消息 将模式设置为 Mode short 写入 操作模式(如果 ModeActivate= True 0=未激活 1=预调节 2=精确调节 3=自动模式 4=手动模式 InternalDiagnostic uint 写入 内部诊断和版本处理(诊断的内 部参数 Internalversion uint 33751043 写入 控制器版本(诊断的内部参数 InternaIRTVersion uint 运行系统版本(诊断的内部参 数) TIA Portal Openness中的工艺对象参数 A5E40959075AA,03/2017 组态中的名称 Openness中的名称 Openness默认值 默认访问值范围 (TIA Porta) 中的数据 方式 类型 IntegralResetMode short 写入 变量 ntegralResetMode用于确 定从“未激活”操作模式切换为“自 动模式时, PIDCtrl.IntegralSum 的预分配方式。 0=滤波 1=删除 保持 3=预分配 4=类似设定值更改 OverwritelnitialOutpu float 0.0 写入 如果 IntegralResetMode=3,则 tvalue 自动预分配 IntegralSum值,在下 周期使 Output= Overwrite InitialOutputValu cPU重启后激活模 Run By Startup bool True 写人 True=CPU重新启动后,激活 Mode中保存的操作模式 Load BackUp False 写入 True=重新加载上一个P|D参数 Set Output bool 写入 True=发生错误时,激活所组态 的输出替代值 TIA Portal Openness中的工艺对象参数 10 A5E40959075A,03/2017 【实例截图】
【核心代码】

标签:

实例下载地址

TIA openness 开发教程

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警