Справочник Пользователя для Mitsubishi Electronics FX2NC
FX Series Programmable Controlers
Applied Instructions 5
5-91
e) Users of FX PLC’s have the option of allowing interrupts to occur immediately, i.e. during the
operation of the FROM/TO instructions or to wait until the completion of the current FROM/TO
instruction. This is achieved by controlling the special auxiliary flag M8028. The following table
identifies certain points associated with this control and operation.
instruction. This is achieved by controlling the special auxiliary flag M8028. The following table
identifies certain points associated with this control and operation.
Users of FX
0N
have no option for interruption of the FROM/TO instructions and hence
always operate in a mode equivalent to having M8028 switched OFF.
5.8.10
TO (FNC 77)
Operation:
The TO instruction writes n words of data to the
head buffer memory address m
head buffer memory address m
2
of the special
function block with the logical block position
specified in m
specified in m
1
. The written data is taken from the
PLC’s head address S for n word devices.
Points to note:
All points are the same as the FROM instruction (see previous page) except point c) which is
replaced by the following:
replaced by the following:
a) The source head address for the data written TO the special function block is specified
under the S operand.
Interruption Disabled
Interruption Enabled
M8028 = OFF
M8028 = ON
Jumps called by interrupt operation are delayed
until the completion of the data transfer of the
FROM/TO instruction
until the completion of the data transfer of the
FROM/TO instruction
Jumps called by interrupt operation occur
immediately
immediately
A small delay of (800m +200)
µ
sec can be
expected in the worst case. Note: m = the number
of 32 bit words
of 32 bit words
Data transfer will resume upon return from the
interrupt program. This may not be desirable if a
FROM/TO instruction has been programmed
within the called interrupt
interrupt program. This may not be desirable if a
FROM/TO instruction has been programmed
within the called interrupt
Ensures that FROM/TO instructions included in
an interrupt program will not interact with others
elsewhere
an interrupt program will not interact with others
elsewhere
M8028 should only be used when a very short
delay is required in applications where timing and
accuracy’s are important
delay is required in applications where timing and
accuracy’s are important
Mnemonic
Function
Operands
Program steps
m
1
m
2
S
n
TO
FNC 79
(TO)
FNC 79
(TO)
Writes data to the
buffer memories
of attached
special function
blocks
buffer memories
of attached
special function
blocks
K, H
Note:
m
m
1
= 0 to 7
K, H
Note:
m
m
2
=FX
(2C)
0 to 31,
FX
FX
2N
0 to
32767
K,H, KnX,
KnY, KnM,
KnS, T, C,
D, V, Z
KnY, KnM,
KnS, T, C,
D, V, Z
K, H
Note:
16 bit op:
n= 1 to 32
32 bit op:
n= 1 to 16
16 bit op:
n= 1 to 32
32 bit op:
n= 1 to 16
TO, TOP:
9 steps
9 steps
DTO, DTOP:
17 steps
17 steps
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
PULSE-P
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
16 BIT OPERATION
FX
FX
0N
FX
0(s)
FX
(2C)
FX
2N(C)
32 BIT OPERATION
TO
H2
D20
K10
K1
[ m1 ][ m2 ] [ S ] [ n ]
X0