Relevant Variables/Function Blocks (Fb); Execution Of Programs - Mitsubishi Electric MELSEC iQ-R Series User Manual

Motion module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Relevant variables/function blocks (FB)

Variable/Structure name
System.Md
Program_Ei
System.PrConst
MeasuresPrograms
PROGRAM_INFO
ExecutionTime
Number
Status

Execution of programs

The program changes to RUN status when PLC READY [Y0] turns ON and the program is executed in accordance with the
program execution type and execution procedure settings.
Execution types for programs
Set the timing that program processing is executed for each execution type.
Settable execution types are shown below.
Execution type
Initial
Normal
Fixed scan
Standby
■Initial execution type
The program is executed only once when PLC READY [Y0] changes from OFFON.
After the initial execution type program completes, a program of a different execution type is executed.
For initial execution type programs, do not use a command that requires multiple execution cycles (a
command containing a complete device) or a Motion control FB until the program completes.
■Normal execution type
The program is executed by normal task through the Motion system.
While running fixed scan execution type programs, the execution of normal execution type programs is
interrupted. However, fixed scan execution type programs can be disabled through a normal execution type
program with a Disable Interrupt (DI) instruction. After being disabled through DI instruction, fixed scan
execution type programs will remain disabled until an Enable Interrupt (EI) instruction is executed.
The enabled/disabled status of fixed scan execution type programs can be checked with
"System.Md.Program.Ei".
Name
EI flag
Measurement flag for program
information
Execution time
Number of executions
Status
Reference
Page 595 Initial execution type
Page 595 Normal execution type
Page 596 Fixed scan execution type
Page 597 Standby execution type
Details
TRUE when EI instruction is executed
• TRUE: during EI
• FALSE: during DI
Sets to measure the program execution time, the number of program
executions, and the execution status.
The measured data is stored in the PROGRAM_INFO structure of each
program.
• TRUE: Measure
• FALSE: Do not measure
Stores the program execution time in units of [s].
Performs a 0 clear when changed from STOPRUN.
Counts the number of program executions. (0 to 65535.)
After surpassing 65535, the number returns to 0.
Performs a 0 clear when changed from STOPRUN.
0: MC_PROGRAM_WAITING (standstill)
1: MC_PROGRAM_RUNNING (running)
3: MC_PROGRAM_ERROR (stop due to error)
4: MC_PROGRAM_DI (standstill by DI)
Appendix 2 Motion Module Programs
A
APPX
595

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rd78g32Rd78g64Rd78ghvRd78g4Rd78ghwRd78g8 ... Show all

Table of Contents