Omron G9SP-N20S Network Connection Manual page 38

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

Advertisement

(2)These variables of the SCU Unit are used in this program.
Name
Data type
SCU_P2_NopSerialS
BOOL
endExecSta
SCU_P2_NopRcvCo
BOOL
mpleteSta
SCU_P2_NopRcvCn
UINT
tSta
Additional Information
For information on variables of the Serial Communications Unit, refer to 5-2 Device Variables
for CJ-series Unit and System-defined Variables (During Serial Gateway Mode) in the
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit (Cat.No.
W494).
(3)This system variable is used in this program.
Name
Data type
_Port_isAvailable
BOOL
Additional Information
For information on system variables when using the serial communications instructions, refer
to SerialSend and SerialRecv in Section 2 Instruction Descriptions of the NJ-series
Instructions Reference Manual (Cat. No. W502).
●Structure
The structures used in the external variables are shown below.
(1)_sPORT
Variable
Meaning
SCU_Inport
Destination
port
UnitNo
Unit number
PhysicP
Serial port
ortNo
number
(2)G9SP_CommandFormat
Variable
Meaning
G9SP_Comman
G9SP
dFormat
command
setting
FixationArea1
Fixed area 1
SendData
User
specification
area
CheckSum
Checksum
area
FixationArea2
End code
area
SerialSend instruction executing flag:
ON during data send operation and OFF when the send
operation is completed.
Receive completion flag:
ON when reception of data is completed and OFF when
storing the receive data in a variable specified with the
SerialRcv is completed.
Receive counter: Stores the size of the received data.
Communications Port Enabled Flag
Description
Data type
Destination port
_sPORT
Unit number of SCU
_eUnitNo
Unit
Serial port number of
USINT
SCU Unit
Description
Specifies command
data sent to G9SP.
Sets the fixed data that
cannot be changed by
the user.
Sets communications
receive data and echo
back data that can be
changed by the user.
Sets a checksum value.
Sets the end code
(#16#2A0D).
9. Project File
Description
Description
Valid range
_CBU_No00 to
_CBU_No00
_CBU_No15
1 or 2
1
Data type
Valid range
G9SP_Comm
-
andFormat
USINT[8]
Fixed
USINT[6]
#16#00 to
16#FF
UINT
#16#00 to
#16#FF
USINT[2]
Fixed
Default
Default
-
-
-
-
35

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj seriesG9sp series

Table of Contents