Variables - Omron G9SP-N20S Network Connection Manual

Safety controller
Hide thumbs Also See for G9SP-N20S:
Table of Contents

Advertisement

9.4. Variables

The table below lists the variables used in this project file.
9.4.1.
External variables
These external variables are necessary to execute this program.
To use global variables, they must be declared in each program.
Additional Information
With the Sysmac Studio, the data type is expressed as ARRAY[0..2] OF WORD when an
array is specified for a data type. However, a data type of an array is simplified in this
document (e.g. WORD[3]).
It is possible to set either of the following to specify an array for a data type with the Sysmac
Studio.
·ARRAY[0..2] OF WORD
·WORD [3]
In the example above, 3 WORD array elements are secured.
●Variables that are used
(1)These variables are used to operate and check this program.
Name
Input_Start
Output_Status
Output_ErrorCode1
Output_ErrorCode2
SCU_Inport
G9SP_CommandData
G9SP_SendCommand
_BYTE
G9SP_SendCommand
_Checksum_WORD
G9SP_SendCommand
_Checksum_HighByte
G9SP_SendCommand
_Checksum_LowByte
G9SP_ResponseData
Data type
This project file is started by changing from FALSE
BOOL
(OFF) to TRUE (ON).
Stores the execution results of this project file.
#16#FFFF: Default
#16#0000: Normal end
#16#FF01: SerialSend instruction error
WORD
#16#FF02: SerialRcv instruction error
#16#FF03: Destination device error (receive data
#16#FF04: Communications error (timeout
Stores the value of ErrorID and destination device
error code for each instruction when an instruction
WORD
error occurs.
(Default: #16#FFFF)
Stores the value of ErrorIDEx and destination device
error code for each instruction when an instruction
DWORD
error occurs.
(Default: #16#FFFF FFFF)
Sets the unit number and port number of the SCU
_sPORT
Unit.
G9SP_Com
Sets the command sent to G9SP.
mandFormat
Data obtained by converting G9SP_CommandData
BYTE[18]
into a BYTE array to be used in the SerialSend
instruction.
Checksum value (WORD) of the send data
WORD
The leftmost byte data of the checksum value
BYTE
(WORD)
The rightmost byte data of the checksum value
BYTE
(WORD)
BYTE[199]
BYTE array data received by the SerialRcv instruction
Description
value error)
detection)
9. Project File
34

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj seriesG9sp series

Table of Contents