Mitsubishi Electronics C64 Home Safety Product User Manual


 
2. PLC Processing Program
2.2 Multi-Programming Function
- 54 -
2.2 Multi-Programming Function
Multiple PLC programs can be registered in C64 and executed in order.
Using this function, PLC program can also be developed by each process.
2.2.1 Program Registration Numbers
Max. registration numbers of PLC program are 9.
One program can contain programs for main and for high-speed together.
2.2.2 Program Execution Order
Multiple programs are executed in determined order, and not executed simultaneously.
The order is determined depending on the label No. in the head of program as following table,
regardless of the registered order. If the same label No. has been used repeatedly, the program
registered later will be valid, and the program made invalid will be not executed.
Label No. Program Execution order
P251
High-speed processing 1st
P360 to P368 High-speed processing 2nd to 10th
(The smaller the number is, the higher the order is.)
P252 Main processing 1st
P370 to P378 Main processing 2nd to 10th
(The smaller the number is, the higher the order is.)
Each program ends by FEND command.
2.2.3 Precautions
(1) The label No. is common in all registered programs. Therefore, if the label No. is used repeatedly,
the program registered later will be given priority.
(2) All devices used in the program are common. There is no local device. When one program end,
the next program will take over each device state as it is.
2.3 User Memory Area Configuration
The user memory area approximate configuration and size are shown below.
Control information
Message data
High speed processing
Main Processing
P251
P252
User PLC
code area
Max. 256Kbyte
Internal information table of User PLC
(The table is automatically generated.)
Data excepting the ladder program
Alarm messages
Operator messages
PLC switches
Load meter
Contactcoil comment data, etc.
(Each of them can be stored in two languages.)
The area obtained by subtracting "Control information"
and "Program with the ladder language" from the User
PLC memory area can be used.
Program with the ladder language
Programs excepting the main processing are
not necessary.
The program order of high-speed and main processing
is random.
Max. 32000 steps (1step=4byte)
Contactcoil
comment data