![background image](http://html.mh-extra.com/html/omron/sysmac-ny512-1300/sysmac-ny512-1300_user-manual_742451220.webp)
8 CIP Message Communications
8-24
NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
ST
*1 Replace the variable name with
_EIP1_EtnOnlineSta
(Port1 Online) or
_EIPIn1_EtnOnlineSta
(Internal Port1
Online), depending on which communications port you use.
// Start sequence when
Trigger
changes to TRUE.
IF ((Trigger=TRUE) AND (DoCIPTrigger=FALSE) AND (_EIP_EtnOnlineSta=TRUE))THEN
DoCIPTrigger:=TRUE;
Stage
:=INT#1;
CIPOpen_instance(Execute:=FALSE);
// Initialize instance.
CIPWrite_instance(
Execute
:=FALSE,
// Initialize instance.
SrcDat
:=WriteDat);
// Dummy
CIPRead_instance(
// Initialize instance.
Execute
:=FALSE,
// Dummy
DstDat
:=ReadDat);
// Dummy
CIPSend_instance(
Execute
:=FALSE,
// Initialize instance.
ServiceDat
:= Dummy,
// Dummy
RespServiceDat
:=RespDat);
// Dummy
CIPClose_instance(Execute:=FALSE);
// Initialize instance.
END_IF;
Internal
Variables
Variable
Data type
Initial value
Comment
Trigger
BOOL
False
Execution condition
DoCIPTrigger
BOOL
False
Processing
Stage
INT
0
Status change
WriteDat
INT
1234
Write data
ReadDat
INT
0
Read data
ReqPath
_sREQUEST_
PATH
(ClassID:=0, InstanceID:=0,
isAttributeID:=False, AttributeID:=0)
Request path
RespDat
ARRAY[0..10] OF
BYTE
[11(16#0)]
Response data
Dummy
BYTE
16#0
Dummy
CIPOpen_instance
CIPOpen
CIPWrite_instance
CIPWrite
CIPRead_instance
CIPRead
CIPSend_instance
CIPSend
CIPClose_instance
CIPClose
External
Variables
Variable
Data type
Constant
Comment
_EIP_EtnOnlineSta
*1
BOOL
Online
Содержание Sysmac NY512-1300
Страница 290: ...9 Socket Service 9 32 NY series Industrial Panel PC Industrial Box PC Built in EtherNet IP Port User s Manual W563 ...
Страница 310: ...10 FTP Server 10 20 NY series Industrial Panel PC Industrial Box PC Built in EtherNet IP Port User s Manual W563 ...
Страница 324: ...11 FTP Client 11 14 NY series Industrial Panel PC Industrial Box PC Built in EtherNet IP Port User s Manual W563 ...
Страница 452: ...Appendices A 66 NY series Industrial Panel PC Industrial Box PC Built in EtherNet IP Port User s Manual W563 ...
Страница 453: ...Index 1 NY series Industrial Panel PC Industrial Box PC Built in EtherNet IP Port User s Manual W563 I Index ...
Страница 459: ......