I/O device analog input/analog output
10.1 I/O device analog input
ET 200eco PN
Operating Instructions, 08/2016, A5E01250250-AJ
193
The following user program shows an example for the compensation type "Dynamic
reference temperature" of channels 0 to 7 of the I/O device 8 AI RTD/TC 8xM12 of an RTD
module. The reference junction temperature of the RTD module applies to all channels of the
I/O device 8 AI RTD/TC 8xM12.
Requirements:
● Input address of the I/O device 8 AI RTD/TC 8xM12: 120 (module address)
● Input address of the RTD module: 136 (channel address)
● Request bit for SFB "WRREC": M 20.0
● Busy bit for SFB "WRREC": M 20.1
● Memory for data transmission: MW 0 to MW 16
Checking the request: New Dynamic Ref. Temp.
Checking if WRREC is "Busy"
skip if no transmission is required
Checking if WRREC is "Busy"
// Create memory for data transmission
Transmit temperature in hundredths of a degree (Pt100 Climatic)
Transmit temperature in Celsius
Read in reference junction temperature of an RTD module in the plant
for channel 0 of the 4 AI RTD/TC
for channel 1 of the 4 AI RTD/TC
for channel 2 of the 4 AI RTD/TC
for channel 3 of the 4 AI RTD/TC
for channel 4 of the 4 AI RTD/TC
for channel 5 of the 4 AI RTD/TC
for channel 6 of the 4 AI RTD/TC
for channel 7 of the 4 AI RTD/TC
// Transmit the reference junction temperature to the RTD/TC
Request bit for data transmission
Input address 120 of the 8 AI RTD/TC
Data record number must be set to 2
Busy bit from SFB "WRREC"
Pointer to memory for data transmission, length 18 bytes