Справочник Пользователя для Mitsubishi Electronics QnUCPU

Скачать
Страница из 630
7
 
-
 
6
CHAPTER7 COMMUNICATIONS WITH INTELLIGENT FUNCTION MODULE
1
2
3
4
5
6
7
8
7.
 C
o
mm
uni
ca
tions
 bet
ween C
P
Module 
and I
n
te
lligent
 F
unct
io
n
 M
o
dule
7.
1.
 Com
m
unicat
ions using 
the i
n
te
lli
gen
t f
unct
ion 
m
odule 
de
vice
7.1.4  Communications using the intelligent function module device
(1) Intelligent function module device
The intelligent function module device (
Section 9.5.1) represents the buffer memory of the intelligent 
function module as one of the CPU module devices.
The data stored in the buffer memory of the intelligent function module can be treated by the sequence instruction 
as well as the device memory.
A programming example is given below for the case where "100" is written to the buffer memory of an address 0 
of the intelligent function module whose I/O number is X/Y20 to X/Y2F.
(2) Difference from the FROM and TO instructions
The intelligent function module device processes data read from the intelligent function module with one 
instruction as the device can be treated as one of the CPU module devices.
A program example is given below for the case where data read from the intelligent function module are added 
and then the result is stored in D2.
This reduces the number of steps in whole program.
The instruction processing time indicates the time required for instruction execution and accessing the intelligent 
function module.
Figure 7.4 Use of the intelligent function module device
Figure 7.5 Application example of the intelligent function module device
MOV   K100   U2\G0
Buffer memory address
I/O number X/Y20
+   U2\G0   D0   D2