Example using the NZ2FTS-60AD4 (master module: QJ71MT91)
The following example is for a program to read AI values that are obtained from A/D conversion performed on AI 0 (Channel
0) to AI 3 (Channel 3) of the analog input module.
System configuration
Item
Master station (IP address: 192.168.1.100)
Slave station (IP address: 192.168.1.200)
Device assignment
The following figure shows the device assignment for the automatic communication function. ( Page 331 Assignment of
the master station (QJ71MT91) to the buffer memory).
Master station
CPU module
Device/label memory
D1000
·
D1003
Master station setting
For the setting method of master station parameters, refer to the following.
Page 302 Settings on the master station (QJ71MT91)
Slave station setting
The following table lists the parameter settings of the NZ2FTS-60AD4. ( Page 484 Parameter settings)
Item
Frequency suppression
Data format
Measurement range
11 NZ2FT-MT
346
11.9 Program Example of NZ2FT-MT
CPU module
Power supply module
MODBUS/TCP interface module
MODBUS/TCP coupler
4ch analog input module
Slave station
QJ71MT91
Buffer memory
(input data area)
1100H
(U0\G4352)
·
1103H
(U0\G4355)
Description
AI 0 (Channel 0)
Disabled
High resolution format
0...20mA
NZ2FT-MT
Input data
Byte
Content
0
Process data of
·
the modules
(8bytes)
7
AI 1 (Channel 1)
AI 2 (Channel 2)
-10...10V
0...20mA
Model
Q04UDHCPU
Q61P
QJ71MT91
NZ2FT-MT
NZ2FTS-60AD4
NZ2FTS-60AD4
Process data
Byte
Content
0
AI 0 (2bytes)
1
2
AI 1 (2bytes)
3
4
AI 2 (2bytes)
5
6
AI 3 (2bytes)
7
AI 3 (Channel 3)
-10...10V