Variables - Omron E5*D Series Connection Manual

General-purpose serial. rs-485 compoway/f. machine automation controller,
Hide thumbs Also See for E5*D Series:
Table of Contents

Advertisement

9.4.

Variables

The variables used in this program are listed below.
9.4.1.
Lists of Variables
The following tables list the external variables (user-defined global variables, device variables
for CJ-series Unit and system-defined variables) and internal variables, which are both used
in this program.
●External variables
[User-defined global variables]
Variable name
Input_Start
Input_NodeNo
Input_MRCSRC
Input_SendText
Output_recvByteSize
Output_recvCWFdata
Output_CmdErrorID
Output_CmdErrorIDEx
Output_TransErrCode
Output_CWFErrCode1
Output_CWFErrCode2
[Device variables for CJ-series Unit] (SCU)
Variable name
J01_P1_TransErr
J01_P1_TransErrSta
Additional Information
For details on the device variables for the SCU, refer to 2-3. Device Variable for CJ-series
Unit of the CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit
(Cat. No. W494).
[System-defined variable]
Variable name
_Port_isAvailable
Additional Information
For information on the system-defined variables for the SendCmd instruction, refer to Serial
Communications Instructions in Section 2. Instruction Descriptions of the NJ/NX-series
Instructions Reference Manual (Cat. No. W502).
Data type
Communications start switch (The program is started when this
BOOL
switch changes from FALSE to TRUE.)
STRING[3]
Destination node address
Command execution code
STRING[5]
Read Controller Attributes: "0503"
Command parameter
STRING[128]
Read Controller Attributes: " " (no parameter)
UINT
The number of receive data bytes
STRING[256]
An area that stores receive data. (STRING type: 256 characters)
An area that stores an error code of SendCmd instruction.
WORD
Normal end: 16#0000
An area that stores an expansion error code of SendCmd
DWORD
instruction. Normal end: 16#00000000
Transmission error status when a communication error occurs.
WORD
Storage area of J01_P1_TransErrSta
Normal end: 16#0000
An area that stores the Destination Device end code when a
WORD
Destination Device error occurs.
Normal end: 16#0000
An area that stores the response code when a Destination
WORD
Device error occurs.
Normal end: 16#0000
Data type
BOOL
Transmission error
BOOL
Transmission error status
Data type
Network Communications Instruction Enabled Flag
BOOL
TRUE: A port is available. FALSE: A port is not available.
9.Program
Description
Description
Description
44

Advertisement

Table of Contents
loading

Table of Contents