9. Program
51
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 the communications
processing
1.2. Clearing the communications
processing status flags
1.3. Entering in the communications in
progress status and shifting to each
state processing
The communications processing
starts.
2.Initialization
processing
2.1. Initializing the communications
instruction
2.2. Initializing the communications
instruction execution flag
2.3. Initializing the error code storage areas
2.4. Setting the input variable of the
ExecPMCR instruction
2.5. Initializing the receive data storage
areas
2.6. Initialization setting end processing
The parameter setting of the
communications instruction
(ExecPMCR instruction) and the
receive data storage areas are
cleared.
3.PMCR
communications
processing
3.1. Determining the communications
processing status and setting the
execution flag
3.2. Executing the communications
instruction
The ExecPMCR instruction is
executed.
A normal end or an error end of the
execution is detected.
4.Processing
number error
process
-
The error processing is executed
when a non-existent status
processing number is detected.