Ladder Program - Omron G9SP-N20S Network Connection Manual

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

Advertisement

Name
G9SP_ReceiveData_error

9.5. Ladder Program

9.5.1.
Ladder Program Function Configuration
The functional configuration of this program is as follows
Major
classification
1. Initialization
1.1. SCU Unit setting
processing
1.2. Setting the G9SP command
1.3. Generating a checksum
1.4. Converting the send data
1.5. Initializing the response data
1.6. Turning ON the serial
2. Managing
2.1. Generating a SerialSend
the
SerialSend
2.2. Executing the SerialSend
instruction
executing
2.3. Checking for the SerialSend
status
2.4. Waiting for data send
2.5. Checking for data send
2.6. Saving the error status
3. Managing
the SerialRcv
instruction
executing
status
3.3. Checking for SerialRcv
3.4. Checking for data receive
3.5. Saving the error status
4.End
4.1. Checking the response data
processing
4.2. Generating an error flag
Data type
Receive data error flag.
BOOL
Turns ON when the receive data is not normal.
Minor classification
data
(USINT→BYTE)
area and status
communications executing
flag and enabling the monitor
timer (20 seconds)
instruction execution flag
instruction
instruction error
completion
completion
3.1. Generating a SerialRcv
instruction execution flag
3.2. Executing the SerialRcv
instruction
instruction error
completion
9. Project File
Description
Description
Preparation for communications.
Variables to be used are cleared
and initialization settings are
performed.
The SerialSend instruction is
executed and the program waits
for the completion of data send
operation.
The error status is stored in the
status area when the operation
ends in an error.
The SerialRcv instruction is
executed and the program waits
for the completion of data receive
operation.
The error status is stored in the
status area when the operation
ends in an error.
The receive data is checked.
The error flag is turned ON when
an error occurs.
37

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj seriesG9sp series

Table of Contents