Technical data

Table Of Contents
SFCs for Controlling Program Execution
System Software for S7-300/400 System and Standard Functions - Volume 1/2
A5E00709327-01
4-3
4.4 Triggering a Multicomputing Interrupt with SFC 35
"MP_ALM"
Description
Calling SFC 35 "MP_ALM" during multicomputing triggers the multicomputing
interrupt. This leads to a synchronized start of OB 60 on all CPUs involved. In the
single processor mode and when operating with a segmented rack, OB 60 is only
started on the CPU that called SFC 35.
You can indicate the cause of the multicomputing interrupt using the JOB input
parameter. This job identifier is transferred to all the CPUs involved and you can
evaluate it in the multicomputing interrupt (OB 60) (refer to the online
documentation "Programming with STEP 7").
You can call SFC 35 "MP_ALM" at any point in your program. Since the call would
be pointless in any mode other than RUN, if it is called in the STARTUP mode, the
multicomputing interrupt is suppressed. The function value informs you of this.
Parameter Declaration Data Type Memory Area Description
JOB INPUT BYTE I, Q, M, D, L, const. Job identifier: Possible values: 1 to
15
RET_VAL OUTPUT INT I, Q, M, D, L If an error occurs during execution
of the function, the return value
contains an error code.
Error Information
Error Code (W#16#...) Explanation
0000 No error occurred.
8090 The JOB input parameter contains an illegal value.
80A0 Execution of OB60 following the last multicomputing interrupt is not completed
either on the local or on another CPU.
80A1 Incorrect mode (STARTUP instead of RUN).
8xyy General error codes, see Evaluating Errors with Output Parameter RET_VAL