Basics of program execution
8.3 Asynchronous instructions
Automation system
System Manual, 12/2017, A5E03461182-AE
183
Parallel processing of asynchronous instruction jobs
A CPU can process several asynchronous instruction jobs in parallel. The CPU processes
the jobs in parallel under the following conditions:
●
Several asynchronous instruction jobs are called at the same time.
●
The maximum number of simultaneously running jobs for the instruction is not exceeded.
The figure below shows the parallel processing of two jobs of the WRREC instruction. The
two instructions are executed simultaneously for a certain duration.
Figure 8-2
Parallel processing of the asynchronous instruction WRREC
Assignment of call to job of the instruction
To execute an instruction over multiple calls, the CPU must be able to uniquely relate a
subsequent call to a running job of the instruction.
To relate a call to a job, the CPU uses one of the following two mechanisms, depending on
the type of the instruction:
●
Using the instance data block of the instruction (for "SFB" type)
●
Using job-identifying input parameters of the instruction. These input parameters must
match in each call during processing of the asynchronous instruction.
Example: A job of the "Create_DB" instruction is identified by input parameters
LOW_LIMIT, UP_LIMIT, COUNT, ATTRIB and SRCBLK.
The following table shows which input parameters you use to identify which instruction.
Instruction
Job is identified by
DPSYC_FR
LADDR, GROUP, MODE
D_ACT_DP
LADDR
DPNRM_DG
LADDR
WR_DPARM
LADDR, RECNUM
WR_REC
LADDR, RECNUM
RD_REC
LADDR, RECNUM
CREATE_DB
LOW_LIMIT, UP_LIMIT, COUNT, ATTRIB,
SRCBLK
READ_DBL
SRCBLK, DSTBLK
WRIT_DBL
SRCBLK, DSTBLK
RD_DPARA
LADDR, RECNUM
DP_TOPOL
DP_ID
Содержание Simatic S7-1500/ET 200MP
Страница 1: ......