Appendices
A - 40
NX-series Communications Interface Units User’s Manual (W540)
The following variable table is set from the Support Software. All of the variables that you registered in
the I/O map are registered as global variables.
Internal Variables
External Variables
Variable Table
Name Data type Initial value Comment
RcvSize UINT UINT#0 Size of the received data in bytes
RcvInitialize BOOL FALSE Initial processing execution flag for
recept
ion processing
RcvError BOOL FALSE Reception error flag
RcvDone BOOL FALSE Reception completed flag
InitialRequestTrigger BOOL FALSE Condition to establish communications
InitialRequestTrig-
ger_R_TRIG_in-
stance
R_TRIG Instance of R_TR
IG instruction
RcvDat ARRAY[0..45] OF BYTE
[46(16#0)]
*1
*1. Set the size of the RcvDat array to the following size or larger: Maximum receive data size [bytes] + Input
divided data size [bytes].
In this sample, the maximum receive data size is 26 (assuming A to Z is received) and the input divided
data size is 20 bytes, so the array size is 46.
Receive data storage area
Name Data type Comment
N1_Ch1_Input_Data_01 ARRAY[0..3] OF
BYTE
Ch1 Input Data 01
N1_Ch1_Input_Data_02 ARRAY[0..3] OF
BYTE
Ch1 Input Data 02
N1_Ch1_Input_Data_03 ARRAY[0..3] OF
BYTE
Ch1 Input Data 03
N1_Ch1_Input_Data_04 ARRAY[0..3] OF
BYTE
Ch1 Input Data 04
N1_Ch1_Input_Data_05 ARRAY[0..3] OF
BYTE
Ch1 Input Data 05
N1_Ch1_Input_SID USINT Ch1 Input SID
N1_Ch1_Input_SID_Response USINT Ch1 Input SID Response
N1_Ch1_Input_Data_Length UINT Ch1 Input Data Length
N1_Ch1_Input_Data_Type WORD Ch1 Input Data Type
N1_Ch1_Receive_Data_Flag BOOL Ch1 Receive Data Flag
N1_Ch1_Receive_Last_Data_Flag BOOL Ch1 Receive Last Data Flag
N1_Ch1_Receive_Data_Error_Flag BOOL Ch1 Receive Data Error Flag
E001_NX_Unit_I_O_Data_Active_Status_125 ARRAY[0..125] OF
BOOL
NX Unit I/O Data Active Status