Four-word Operation
4-4-3 Programming Examples
IR Bit Allocation
Bit
000
00
Write data
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
Point Control Bits
Turn ON one of the Point Control Bits to designate the desired input point when
writing the number of sampling counts for the mean value and when reading
binary-converted data. When using peak hold, turn OFF the A/D Conversion Bit.
When not using peak hold, turn ON this bit.
Normal/Peak Control Bit
Turn ON this bit and the A/D Conversion Bit to read normal binary-converted val-
ues and turn OFF this bit and the A/D Conversion Bit to read peak values.
Peak Reset Bit
Turn ON this bit to reset an input point for which the peak value is being read.
A/D Conversion Bit
Turn ON this bit when reading normal data, and turn it OFF when reading peak
values or writing the number of sampling counts for the mean value.
Point Read Flags
One of these flags turns ON to designate the input point for which data is being
read.
Disconnection Detect Flag
When the signal line of the point designated by the Point Read Flags is burned
out or disconnected, this flag turns ON. The offset must be set to at least 1 V
(4 mA) for this flag to work.
Normal/Peak Flag
This flag turns ON when the data being read is normal data and turns OFF when
the data is the peak value.
Note The scaling function does not work with 4-word operation.
Example programs are shown below for four-word operation using the C1000H.
Create programs as described below for a CPU Unit that does not support the
I/O READ and I/O WRITE instructions (READ and WRIT) or when the Analog I/O
Unit is mounted to a SYSMAC BUS Slave Rack.
The C500-AD101 is allocated IR 000 to IR 003.
Output
001
Input point
p
p
Point 1
designation
d
i
i
Point 2
Point 3
Point 4
Point 5
Point 6
Point 7
Point 8
Normal/Peak Control Bit
0
0
0
Peak Reset Bit
A/D Conversion Bit
PC Write Completed Bit
PC Read Completed Bit
Words
002
Read data
Read data
point designa-
i
tion
tion
Disconnection Detect Flag
Normal/Peak Flag
0
0
0
0
A/D Read Completed Flag
A/D Write Completed Flag
Section 4-4
Input
003
Point 1
d
i
Point 2
Point 3
Point 4
Point 5
Point 6
Point 7
Point 8
51
Need help?
Do you have a question about the SYSMAC C Series and is the answer not in the manual?