Chapter 4. CPU module
4 - 23
•
Program : scan.src (scan program)
Variable Name
Variable
type
Data type
Description
READ
VAR
FB Instance
AD_CH
VAR
ARRAY[4] OF BOOL
Assign a channel of AD module to be used
READ.DONE
VAR
ARRAY[4] OF BOOL
Indicates the reading operation is completed
READ.STAT
VAR
USINT
Shows the error status of AD read FB
READ.ACT
VAR
ARRAY[4] OF BOOL
Shows the error status of AD read FB
READ.DATA
VAR
ARRAY[4] OF INT
Digital data converted from analog input
WRITE_1
VAR
FB Instance
DA01_DT
VAR
ARRAY[4] OF INT
Digital data to be output
WRITE_1.DONE
VAR
BOOL
Indicates the write operation is completed
WRITE_1.STAT
VAR
USINT
Shows the error status of DA write FB
WRITE_2
VAR
FB Instance
DA02_DT
VAR
ARRAY[4] OF INT
Digital data to be output
WRITE_2.DONE
VAR
BOOL
Indicates the write operation is completed
WRITE_2.STAT
VAR
USINT
Shows the error status of DA write FB
STAT