9. Program
●
External variables
[User-defined global variables]
Variable name
Data type
Description
Input_Start BOOL
Communication start switch
The program is started when this variable changes from
FALSE to TRUE.
Output_RecvMess STRING[256]
An area that stores the receive data (response) (256
bytes)
Output_ErrCode WORD
An area that stores the error flag for a communications
error or a timeout error that is detected at the connect
processing, TCP socket status read processing, receive
processing and close processing.
Normal end: 16#0000
Output_SktCmdsErrorID WORD
An area that stores the error code for a communications
error or a timeout error that is detected at the connect
processing, TCP socket status read processing and
receive processing.
Normal end: 16#0000
Output_SktCloseErrorID WORD
An area that stores the error code for a communications
error or a timeout error that is detected at the close
processing.
Normal end: 16#0000
Output_EtnTcpSta
_eCONNECTIO
N_STATE
An area that stores the TCP socket status
_ESTABLISHED: Connect status
_CLOSED: Close status
Output_MErrCode DWORD
An area that stores the destination device’s error code for
an FCS error or destination device error that is detected
after the receive processing.
Normal end: 16#00000000
[System-defined variable]
Variable name
Data type
Description
_EIP_EtnOnlineSta BOOL
The status of built-in EtherNet/IP port communications
TRUE: Can be used, FALSE: Cannot be used
Additional Information
For information on the system-defined variables, refer to
Communications Instructions
in
2
Instruction Descriptions
of the
NJ-series Instructions Reference Manual
(Cat. No. W502)
42
Содержание V750 series
Страница 51: ...9 Program 2 Initialization processing 48...
Страница 52: ...9 Program 49...
Страница 53: ...9 Program 3 Connect processing 50...
Страница 54: ...9 Program 4 Send processing 51...
Страница 55: ...9 Program 5 Receive processing 52...
Страница 56: ...9 Program 53...
Страница 57: ...9 Program 6 Close processing 54...
Страница 58: ...9 Program 7 Processing number error process 55...
Страница 60: ...9 Program Program 57...
Страница 62: ...9 Program Program 59...
Страница 64: ...9 Program Program 61...
Страница 78: ...2013 0911 P543 E1 01...