
M
ain
Chapter 1 Configuration and Operation Mode of Programs
1-6
WORD
Flag Name
Name
Description
%FW50 _SCAN_MAX
Maximum scan
time
The longest scan time (update in case of occurrence only), in
0.1ms
%FW51 _SCAN_MIX
Minimum scan time
The shortest scan time (update in case of occurrence only), in
0.1ms
%FW52 _SCAN_MAX
Current scan time
Running time of this scan (scan update), in 0.1ms
1.1.4 Program Composition
T
he program is composed of all function factors required to perform a specific control and they are saved in the
basic unit’s RAM or flash memory. The function factors to execute the program can be generally divided as below.
Function factors
Executing details
Initialization program
•
After applying power, it is the program that is firstly executed after completing the self-
initialization operations required to operate the PLC. It should run until the INIT_DONE
command executes.
•
When the initialization program runs, only the initialization program is available until the
INIT_DONE command runs; the scan program and fixed cycle, external interrupt, internal
device task program are not executed. All other embedded functions such as I/O refresh, high
speed counter, communication are normally executed.
•
It is used to program various operations required for the initial settings of the system
configured with the high performance XGB PLC.
Scan program
•
Repeated regularly at every scan. It performs the operation repetitively from the first step to
the last step in order of being written.
•
If the fixed cycle interrupt, external contact interrupt, high speed counter interrupt occur
during execution of the scan program, it will stop the scan program and return to the
scan program after executing the relevant interrupt program.
Fixed cycle interrupt
program
•
Executed at every set cycle regardless of the scan program. It can be applied to execute the
following time conditions.
Execution at the shorter time interval than 1 scan processing time
Execution at the longer time interval than 1 scan processing time
Execution at the fixed time interval
External contact
interrupt program
•
Executed every time the input conditions (rising edge, falling edge, transition) of the set
external input signal occur. It can be applied when immediate execution is required for external
input conditions.
High speed counter
interrupt program
•
Executed when the high speed counter’s current value is matched with the set value.
Internal device
interrupt program
•
Executed when the set internal device is matched with relational conditions.
•
Detects whether starting conditions of the internal device interrupt occurs during END after
executing the scan program
Subroutine program
•
Executed only when the input condition of the CALL command is On.
Notice
1) Make the interrupt program as shortly as possible. In case the same interrupt occurs repeatedly during
executing the interrupt program, O/S watchdog error may occur with non-execution of the scan program.
(In case the self-interrupt occurs during executing the interrupt program, task conflict error may occur.)
2) Although interrupts with low priority occur several times during executing the one with high priority, the interrupt
will run just once so you should pay attention to set up the priority.
Содержание XBE-DC08A
Страница 124: ...Main Chapter 1 Configuration and Operation Mode of Programs 1 27 1 Memory block diagram ...
Страница 155: ...Main Chapter 2 CPU Function 2 29 Notice For more details on the monitor refer to the XG5000 manual ...
Страница 504: ...Position Chap 6 Commands 6 61 6 11 Function blocks related to Servo Drive ...
Страница 512: ...Positioning Chapter 7 Program 7 8 manual operation 7 1 4 Parameter and Operation Data Setting 1 Parameter Setting ...
Страница 644: ...Positioning Chapter 8 Functions 8 91 ...
Страница 727: ...Positioning Chapter 9 Positioning Error Information Solutions 9 13 ...
Страница 861: ...Special Chapter 1 Embedded Analog 1 39 5 Select View Variables Comments Variables and comments are both displayed ...
Страница 1206: ...Appendix 2 Dimension App2 1 Appendix 2 Dimension Unit mm 1 CPU Type XEC DN32U 2 Positioning Type XEC DN32UP ...
Страница 1207: ...Appendix 2 Dimension App2 2 2 Analog Type XEC DN32UA ...
Страница 1209: ...Appendix 2 Dimension App2 4 XBE DC08A XBE DC16A XBE TN08A XBE TN16A XBE DR16A XBE RY08A ...
Страница 1210: ...Appendix 2 Dimension App2 5 4 Extension Cnet I F Module XBL C41A XBL C21A ...