Specifications
7. Application Instructions
© DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
7-37
Ϩʳ The version 4.9 and above of ES / EX / SS series models support
continuous execution commands (FROM, DFROM, TO, DTO). Other
version won’ t support these commands.
Ϩʳ The rule of command operand
m1: arrangement number of special module. The number of special
module that connects to PLC MPU. The numbering order of special
module from the near to the distant of MPU is from 0 to 7. The
maximum is 8 special modules and won’ t occupy I/O point.
m2: the number of CR. Built-in 16-bit of 36 groups memory of
special module is called CR (Control Register). The number of CR
uses decimal digits (#0~#35). All running status and setting values of
special module have included.
If using FROM/TO command, the unit of read/write of CR is one
number for one time. If using DFROM/DTO command, the unit of
read/write of CR is two numbers in one time.
CR #10 CR #9
Upper 16-bit Lower 16-bit
Assigned CR number
The number of transmission groups n. The meaning of n=2 of 16-bit
command and n=1 of 32-bit are the same.
D0
D1
D2
D3
D4
Assigned
equpment
Assigned
CR
16-bit command when n=6
CR #5
32-bit command when n=3
D5
CR #6
CR #7
CR #8
CR #9
CR #10
D0
D1
D2
D3
D4
D5
Assigned
CR
CR #5
CR #6
CR #7
CR #8
CR #9
CR #10
Assigned
equipment
Ϩʳ When FROM/TO command is executed, all interrupts (including
external or internal interrupt subroutines) will be prohibited. All
interrupts will be executed after FROM/TO command is finished.
Besides, FROM/TO command can be put in the subroutine.
FROM / TO Application Program Example Explanation
For example: Adjust A/D conversion characteristic curve by setting
OFFSET value of CH1 to 0V(=K0
LSB
) and GAIN value of CH1 to
2.5V(=K2000
LSB
).
K1
H10
K1
M1002
K1TO
K1 H 0K33 K1TO
K1 K400
K23
X0
K1TO
K1 K3600K29 K1TO
1. Writing H10 to CR#1 of analog input mode no. 1 and set CH2 to
mode 2 (current input : +4mA ~ +20mA).
2. Writing H0 to CR#33 and allow to adjust characteristics of CH1
and CH2.
3. When X0 switches from OFF to ON, K400
LSB
of OFFSET value
will be wrote in CR#23 and K3600
LSB
of GAIN value will be wrote
in CR#29.
Ϩʳ Switch flag M1083 of EH series model instruction mode function:
FROM/TO commands will be executed when M1083=OFF. All
interrupts (including external or internal interrupt subroutines) will be
prohibited. All interrupts will be executed after FROM/TO command
is finished. Besides, FROM/TO command can be put in the
subroutine.
If there is any interrupts happen when FROM/TO command is
executed during M1083=ON, FROM/TO command will be
interrupted to execute interrupt signal. But FROM/TO command
can’ t be put in the subroutine.