9
.
Program
44
Variables
9.4.
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.
●Exter
nal variables
[User-defined global variables]
Variable name
Data type
Description
Input_Start
BOOL
Communications start switch (The program is started when this
switch changes from FALSE to TRUE.)
Input_NodeNo
STRING[3]
Destination node address
Input_MRCSRC
STRING[5]
Command execution code
Read Controller Attributes: "0503"
Input_SendText
STRING[128]
Command parameter
Read Controller
Attributes: " " (no parameter)
Output_recvByteSize
UINT
The number of receive data bytes
Output_recvCWFdata
STRING[256]
An area that stores receive data. (STRING type: 256 characters)
Output_CmdErrorID
WORD
An area that stores an error code of SendCmd instruction.
Normal end: 16#0000
Output_CmdErrorIDEx
DWORD
An area that stores an expansion error code of SendCmd
instruction. Normal end: 16#00000000
Output_TransErrCode
WORD
Transmission error status when a communication error occurs.
Storage area of J01_P1_TransErrSta
Normal end: 16#0000
Output_CWFErrCode1
WORD
An area that stores the Destination Device end code when a
Destination Device error occurs.
Normal end: 16#0000
Output_CWFErrCode2
WORD
An area that stores the response code when a Destination
Device error occurs.
Normal end: 16#0000
[Device variables for CJ-series Unit] (SCU)
Variable name
Data type
Description
J01_P1_TransErr
BOOL
Transmission error
J01_P1_TransErrSta
BOOL
Transmission error status
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
Data type
Description
_Port_isAvailable
BOOL
Network Communications Instruction Enabled Flag
TRUE: A port is available. FALSE: A port is not available.
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).
Содержание E5*D series
Страница 51: ...9 Program 48 2 Initialization processing ...
Страница 52: ...9 Program 49 3 CompoWay F communications processing ...
Страница 53: ...9 Program 50 4 Processing number error process ...
Страница 60: ...2013 2018 0618 0113 P E1 0 ...