Omron G9SP-N20S Network Connection Manual page 39

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

Advertisement

9.4.2.
Internal Variables
These internal variables are necessary to execute this project file.
They can be used only in this program.
●Variables for internal processing
These function blocks are used in this program.
Name
G9SP_SerialSend_Instance
G9SP_SerialRcv_Instance
G9SP_RcvWait_Timer
G9SP_Check_Timer
●Variables that are used
These variables are used in this program.
Name
G9SP_ResponseData_OK
G9SP_Error_End
G9SP_Excuting
G9SP_SerialSend_Excute
G9SP_SerialSend_Wait
G9SP_SerialSend_End
G9SP_SerialSend_Error
G9SP_SerialRcv_Excute
G9SP_SerialRcv_End
G9SP_SerialRcv_Error
G9SP_TimeOUT
Data type
SerialSend
The instance of the SerialSend instruction
SerialRcv
The instance of the SerialRcv instruction
Data receive waiting timer. Normally, the SerialRcv
instruction is executed after the reception of data is
completed (after SCU_P2_NopRcvCompleteSta is
turned ON). This timer is used to execute the
TON
SerialRcv instruction after a certain period of time
after completion of the send processing even if
completion of the receive operation cannot be
detected. (Setting value: 200 ms)
G9SP send/receive completion check timer. This
timer operates after Input_Start is turned ON until
TON
send/receive operations are completed. A timeout
error occurs when this timer is turned ON. (Setting
value 20 seconds)
Data type
Turns ON when this program receives a normal
BOOL
response.
BOOL
Turns ON an error occurs after executing this program.
Serial communications executing flag.
Turns ON from when Input_Start is turned ON until
BOOL
when the normal end (G9SP_ResponseData_OK) or
the error end (G9SP_Error_End) is turned ON.
SerialSend instruction execution flag.
BOOL
Turns ON during execution of the SerialSend
instruction (until Done is turned ON).
Data sending flag.
Turns ON after the SerialSend instruction is completed
BOOL
until the data send processing is completed (until
SCU_P2_NopSerialSendExecSta is turned OFF).
Data send completion flag.
BOOL
Turns ON when the data send processing is completed.
SerialSend instruction error flag.
BOOL
Turns ON when the SerialSend instruction ends in an
error.
SerialRcv instruction execution flag.
BOOL
Turns ON during execution of the SerialRcv instruction
(until Done is turned ON).
Data receive completion flag.
BOOL
Turns ON when the data receive processing is
completed.
SerialRcv instruction error flag.
BOOL
Turns ON when the SerialRcv instruction ends in an
error.
G9SP send/receive timeout flag.
BOOL
Turns ON when the G9SP_Check_Timer times out.
9. Project File
Description
Description
36

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj seriesG9sp series

Table of Contents