9. Program
45
9.5. ST Program
9.5.1. Functional Components of the Program
This program is written in the ST language. The functional components are as follows.
Major classification
Minor classification
Description
1. Communications
processing
1.1. Starting communications
processing
1.2. Clearing the communications
processing status flags
1.3 Communications processing in
progress status
The communications processing is started.
2. Initialization
processing
2.1. Initializing the timer
2.2. Initializing the instructions
2.3. Initializing the instruction
execution flags
2.4. Initializing the timer enable flags
2.5. Initializing the error code
storage areas
2.6. Setting each processing
monitoring time and Ethernet
communications parameters
2.7. Setting the send/receive
processing required/not required
setting and send data
2.8. Converting send data from a
string to a BYTE array
2.9. Initializing the receive data
storage areas
2.10. Initialization setting end
processing
The Ethernet parameters are set and the
error code storage areas are initialized.
The send/receive required/not required
setting, send data and receive data are set.
3. Connect
processing
3.1. Determining the connect
processing status and setting the
execution flag
3.2. Enabling the connect instruction
monitoring timer
3.3. Executing the connect
instruction
The connect processing is performed.
The processing is performed
unconditionally after starting the
communications processing and executing
the initialization setting.
4. Send processing
4.1. Determining the send
processing status and setting the
execution flag
4.2. Enabling the send instruction
monitoring timer
4.3. Executing the send instruction
The processing is performed when the send
processing required/not required setting is
set to Required and the connect processing
ends normally.
5. Receive
processing
5.1 Determining the receive
processing status and setting the
execution flag
5.2 Enabling the receive waiting
time monitoring timer
5.3 Enabling the receive instruction
monitoring timer
5.4 Executing the receive instruction
5.5 Executing the TCP socket status
read processing
5.6 Executing the destination device
error detection instruction
The processing is performed when the
receive processing required/not required
setting is set to Required and the send
processing ends normally.
If multiple receive data arrive, the receive
processing is repeated.
The receive data is stored and checked.
Summary of Contents for V750 series
Page 51: ...9 Program 2 Initialization processing 48...
Page 52: ...9 Program 49...
Page 53: ...9 Program 3 Connect processing 50...
Page 54: ...9 Program 4 Send processing 51...
Page 55: ...9 Program 5 Receive processing 52...
Page 56: ...9 Program 53...
Page 57: ...9 Program 6 Close processing 54...
Page 58: ...9 Program 7 Processing number error process 55...
Page 60: ...9 Program Program 57...
Page 62: ...9 Program Program 59...
Page 64: ...9 Program Program 61...
Page 78: ...2013 0911 P543 E1 01...