OUT
接收函数信息,包括接收数据的源地址和端口、状态信息等,数据类型为结构体,接收函数信息参考表1:
UDP示例程序参考附带文件“SIMOTION_UDP”.ZIP
TCP示例程序参考附带文件“SIMOTION_TCP”.ZIP
6SN1146-1AB00-0BA1
6SN1145-1AA01-0AA2
6SN1145-1BA01-0BA2
6SN1145-1BA02-0CA2
6SN1145-1BA01-0DA1
6SN1123-1AA00-0HA2
6SN1123-1AA00-0LA3
6SN1123-1AA00-0EA2
6SN1123-1AA00-0AA2
6SN1123-1AA00-0BA2
6SN1123-1AA00-0CA2
6SN1123-1AA00-0DA2
6SN1123-1AB00-0HA2
6SN1123-1AB00-OAA2
6SN1123-1AB00-OBA2
6SN1123-1AB00-OCA3
6SN1118-1NJ01-0AA1
6SN1118-1NK01-0AA1
6SN1118-1NH01-0AA1
6SN1118-0DM33-0AA2
6SN1118-0DM31-0AA2
6SN1118-0DJ23-0AA2
6SN1118-0NH11-0AA1
6SN1118-0DK23-0AA2
6FC5203-0AF02-0AA1
6FC5203-0AF22-0AA2
6FC5247-0AA00-0AA3
6FC5210-0DF31-2AA0
6FX2007-1AC04
6FX2007-1AD03
6FX2001-2CC50
1FK7063-5AF71-1AG0
1FK7042-5AF71-1AG0
1FK7063-5AF71-1AHO
6SN1145-1AA01-0AA2
6SN1145-1BA01-0BA2
6SN1123-1AA00-0EA2
6SN1123-1AA00-0DA2
6SN1123-1AB00-0HA2
6SN1118-1NJ01-0AA1
6SN1118-0NH11-0AA1
6SN1123-1AA00-0BA2
6SN1118-0DJ23-0AA2
6SN1145-1BA02-0CA2
6SN1123-1AA00-0LA3
6SN1118-1NH01-0AA1
6SN1145-1BA01-0DA1
6SN1123-1AA00-0AA2
6SN1118-1NJ01-0AA0
6SN1118-0DM31-0AA2
1FK7042-5AF71-1AG0
6FC5247-0AA00-0AA0
接收函数调用的示例程序参考图18,接收函数与PLC的发送功能块相匹配。
3.1在硬件配置中设定以太网接口
在SCOUT界面中点击SIMOTION CPU,右键点击“Open HW configuration”进入硬件配置界面,例如D435,X120和X130为以太网接口,双击选择的通信接口,在弹出的界面中定义IP地址和子网掩码,如图9所示: