Variables - Omron V400-R2 Connection Manual

Ultra small multi-code reader (rs-232c)
Hide thumbs Also See for V400-R2:
Table of Contents

Advertisement

9.4. Variables

The variables used in this program are listed below.
9.4.1.
List of user-defined variables
The following tables list the data type, external variables (user-defined global variables/device
variable for CJ-series Unit/system-defined variable) and internal variables that are used in this
program.
●Data type (Structure)
[Communications processing status flags]
Name
sStatus
Busy
Done
Error
●External variables
[User-defined global variables]
Variable name
Input_Start
Input_SendData
Output_RecvData
Output_RecvMessage
Output_PmrErrorID
Output_PmrErrorIDEx
Output_PmrStaErrCode
Output_TransErrCode
*You need to use an AT specification for the area that stores DstDat[ ] of the ExecPMCR instruction to specify
an address in the memory used for CJ-series Units.
Data type
STRUCT
Structure of communications processing status flags
Communications processing in progress flag
BOOL
TRUE: Processing is in progress. / FALSE: Processing is
not in progress
Communications processing normal end flag
BOOL
TRUE: Normal end / FALSE: Other than normal end
Communications processing error end flag
BOOL
TRUE: Error end / FALSE: Other than error end
Data type
Communication start switch
BOOL
The program starts when this flag changes from FALSE to
TRUE
ARRAY[0..249]
Send data storage area (500 bytes (WORD))
OF WORD
Receive data storage area (500 bytes (WORD))
ARRAY[0..249]
An area that stores DstDat[ ] of the ExecPMCR
OF WORD
instruction
An area that stores the receive data after converted into a
STRING[498]
string. (498 characters)
An area that stores an error code of the ExecPMCR
WORD
instruction
Normal end: 16#0000
An area that stores an expansion error code of the
DWORD
ExecPMCR instruction
Normal end: 16#00000000
An area that stores a protocol macro error code
WORD
Normal end: 16#0000
An area that stores the transmission error status flag
WORD
Storage area of J01_P2_TransErrSta
Normal end: 16#0000
9. Program
Explanation
Explanation
AT
%5500
(*)
48

Advertisement

Table of Contents
loading

Table of Contents