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

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

Advertisement

Safety program execution type
The standard program and safety program execution types are as follows.
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 MASK 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
Monitors whether execution of the safety program is completed within the safety cycle time, and if the program execution time
exceeds the next safety cycle time, an error occurs at the Safety CPU and safety 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 Safety 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
Safety CPU
SM1888
Safety function
module
Safety input
(input refresh)
Safety program
(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.
• Safety CPU: SM1888 turns ON, and the value in SD1888 is incremented by one.
• Safety function module: The value in Un\G54 is incremented by one.
31 RUNNING A SAFETY PROGRAM
526
31.2 Safety Program
Tsc
A
B
(2)
Tsio
Execution type
• Initial
• Scan
• Fixed scan
• Event
• Standby
Fixed scan
Safety cycle processing time
execution cycle error count
SD1888
Un\G54
Tsc
(1)
C
Cause of safety cycle processing time
execution cycle error count being
incremented by one
If error codes 1A00H, 1A01H occur
If error code 1A00H occurs
Tsc
A
B
C
Tsio

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents