Mitsubishi Electric MELSEC iQ-R-R00CPU User Manual page 583

Melsec iq-r series cpu module application user's manual
Table of Contents

Advertisement

Safety program execution type
The following table lists the standard program and safety program execution types.
Program
Standard program
Safety program
Safety programs are executed as a fixed scan execution type program. However, safety programs perform safety control, and
therefore operation differs from standard fixed scan execution type programs in the following ways.
• They are unaffected by disabling interrupt instructions (EI instruction, DI instruction, and IMASK instruction), and are
executed based on the safety cycle time.
• Of all interrupt programs that can be created by customers, the execution of safety programs is given highest priority.
• Safety cycle processing including safety programs prioritizes fixed periodicity. If the safety cycle time is exceeded, and
safety cycle processing is executed, processing is not performed in succession, but based on the interrupt timing of the
next cycle time.
When the program does not complete within the safety cycle time
Whether execution of the safety program is completed within the safety cycle time is monitored, and if the program execution
time exceeds the next safety cycle time, an error occurs at the SIL2 Process CPU and SIL2 function module. Note that if the
next safety cycle time is exceeded, the safety input  safety program is not executed following program completion, a safety
cycle processing error (error code: 1A01H) is detected at the SIL2 Process CPU, and the safety program is executed at the
next safety cycle time. Also, if execution of the program is completed after the safety cycle time has been exceeded, the
safety cycle processing time execution cycle error flag turns on, and the safety cycle processing time execution cycle error
count is incremented by one as follows.
Item
Safety cycle processing time
execution cycle error flag
SIL2 Process CPU
SM1888
SIL2 function module
Safety input
(input refresh)
Safety program
A
(operation processing)
Safety output
(output refresh)
Tsc: Safety cycle time
Tsio: Safety program + Safety input/output processing time
(1): If safety input/output and safety program execution are not completed within the safety cycle time, interrupts during this period are ignored. Execute safety
input/output and safety programs from the next interrupt.
(2): If the time from safety input to safety output exceeds the safety cycle time, a continuation error will occur after safety processing is complete.
• SIL2 Process CPU: SM1888 turns ON, and the value in SD1888 is incremented by one.
• SIL2 function module: The value in Un\G54 is incremented by one.
Execution type
• Initial
• Scan
• Fixed scan
• Event
• Standby
Fixed scan
Safety cycle processing time
execution cycle error count
SD1888
Un\G54
Tsc
B
C
(2)
Tsio
Cause of increments of safety cycle
processing time execution cycle error
count
Occurrence of an error code: 1A00H or 1A01H
Occurrence of an error code: 1A00H
Tsc
(1)
35.10 Running a Safety Program
Tsc
A
B
C
Tsio
35 BASIC CONCEPT
581
35

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents