PROFINET

默认Profinet的GSDML组态文件存储位置:C:\ProgramData\ABB\zenon800\straton\GSDML 日志文件夹

修改槽的数量

默认zenon仅支持128个槽位,但是可以通过修改GSDML文件,让zenon支持更多的槽位。
日志文件夹
日志文件夹

Prefix

设置通过 右击 -> Create variables 自动添加变量时的名称前缀。

PROFINET IO Device - IOxS (IOPS, IOCS)

  1. I/O provider data and I/O consumer data.
  2. In addition to the actual input and output data, PROFINET sends status information (provider states). These indicate whether or not the values are valid (PS == 0x80). For example, the input values of a slave could be invalid if a hardware failure is present. Likewise, you could explicitly declare the outputs sent by the controller as invalid if an error occurs somewhere in the application. Then the slaves activate the default values if they are configured.
  3. The value “hex 80” (bit 7) from the provider state bytes display the status “OK”. For detailed information about the definition of this byte, refer to the technical specification for PROFINET IO.
  4. Note In the case of an I/O provider state that is mapped for output data, the output PS must be set to “GOOD” (=0x80) explicitly. Otherwise, the device will not accept the data. Then the slaves activate the default values if they are configured.
  5. Note If the application is stopped, then the unmapped I/O provider states for outputs are set to “bad”. Mapped I/O provider states are set to their configured values.

日志文件夹
日志文件夹

Diagnostics data

Diagnostics data can be created for each Device module using the right mouse button on the Device > Create Variables > Device diagnosis. The meaning of these variables is described in the Profinet standard. Here is a short summary:

  • CycleCounter (Slave: Counter for PROFINET cyclic messages
  • State: TRUE= connection is ready, FALSE = connection is down or passive
  • DataValid: TRUE if received data is valid
  • ProviderState: TRUE = Run, FALSE = Stop
  • StationProblemIndicator: TRUE = no problem. FALSE = this indicates a problem but does not necessarily mean that all data sent are invalid or that the connection to the slave is broken.
  • PNIOStatus: The Profinet IO status error, recovered as a variable in straton since version 9.2 (see the straton Online Help or the Profinet IO Device tutorial or the Profinet standard for more details and how to decode it)

日志文件夹

K5ID

当重新配置Slot时,zenon会自动重新设置K5ID。

<fieldbusvar K5ID="92" NAME="RecipeIDList[12]" VARAREA="0" TYPE="7" SLOT="42" SUBSLOT="1" OFFSET="48" BIT="0" LENGTH="0" __F="-1"/>
<fieldbusvar K5ID="93" NAME="RecipeIDList[13]" VARAREA="0" TYPE="7" SLOT="42" SUBSLOT="1" OFFSET="52" BIT="0" LENGTH="0" __F="-1"/>
<fieldbusvar K5ID="94" NAME="RecipeIDList[14]" VARAREA="0" TYPE="7" SLOT="42" SUBSLOT="1" OFFSET="56" BIT="0" LENGTH="0" __F="-1"/>
<fieldbusvar K5ID="95" NAME="RecipeIDList[15]" VARAREA="0" TYPE="7" SLOT="42" SUBSLOT="1" OFFSET="60" BIT="0" LENGTH="0" __F="-1"/>

设备连接状态

对于PROFINET从站,可以通过创建Area为Device diagnosis的变量获取设备连接状态。对于主站,可以通过设置Area为Slave status的变量获取设备连接状态。
日志文件夹
日志文件夹

字节大小

PROFINET可能不支持大于512字节的输入输出信号定义。
日志文件夹

WatchDog

当PROFINET运行时,报watchdog factor expired错误是,可以把watchdog监控的时间加长减少报警的次数,但这个设置其实只是减少报警次数,本质没有改变。出现这个报警的原因可能是网线质量差,网络拥堵等原因。可以通过增加Reduction ratio来优化这个问题。

日志文件夹
日志文件夹

响应时间

minDeviceInterval表示设备能够提供新数据的时间性能,即设备提供数据的最小间隔,sendClockFactor一般不能修改,由GSD文件确定。 minDeviceInterval = 31.25us * sendClockFactor; 一般在GSDML中该值直接表示为更新的倍数,即当minDeviceInterval=256时,表示为256*31.25=8ms ReductionRatio表示在一个SendCircle中可以接受的更新频率: SendCircle = 31.25us * sendClockFactor * ReductonRatio