16: I
NTERFACE
I
NSTRUCTIONS
« FC4A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
»
16-3
DGRD (Digital Read)
Applicable CPU Modules
Note:
The DGRD instruction requires transistor output terminals. When using all-in-one 24-I/O type CPU module FC4A-C24R2
or FC4A-C24R2C, connect a transistor output module.
Valid Operands
For the valid operand number range, see pages 6-1 and 6-2.
The DGRD instruction can read 65535 (5 digits) at the maximum. When the read value exceeds 65535 with the quantity of
digits set to 5, a user program execution error will result, turning on special internal relay M8004 and the ERR LED.
Note:
The DGRD instruction can be used up to 16 times in a user program. When transferring a user program containing
more than 16 DGRD instructions to the CPU, a user program syntax error occurs, turning on the ERR LED. The user program
cannot be executed.
Conversion
BCD:
To connect BCD (decimal) digital switches
BIN:
To connect BIN (hexadecimal) digital switches
Input Points
Inputs are used to read the data from digital switches. The quantity of required input points is always 4. Four input points
must be reserved starting with the input number designated by operand I. For example, when input I0 is designated as
operand I, inputs I0 through I3 are used.
Output Points
Outputs are used to select the digits to read. The quantity of required output points is equal to the quantity of digits to read.
When connecting the maximum of 5 digital switches, 5 output points must be reserved starting with the output number
designated by operand Q. For example, when output Q0 is designated as operand Q to read 3 digits, outputs Q0 through
Q2 are used.
Digital Switch Data Reading Time
Reading digital switch data requires the following time after the input to the DGRD instruction is turned on. Keep the
input to the DGRD instruction for the period of time shown below to read the digital switch data. For example, when read-
ing data from 5 digital switches to the destination operand, 14 scans are required
FC4A-C10R2/C
FC4A-C16R2/C
FC4A-C24R2/C
FC4A-D20K3/S3
FC4A-D20RK1/RS1 & FC4A-D40K3/S3
—
—
X
X
X
Operand
Function
I
Q
M
R
T
C
D
Constant
Repeat
I
First input number to read
X
—
—
—
—
—
—
—
—
Q
First output number for digit selection
—
X
—
—
—
—
—
—
—
D1 (Destination 1)
Destination to store results
—
—
—
—
—
—
X
—
—
Digital Switch Data Reading Time
2 scan times
×
(Quantity of 2)
First input number
First output number
Conversion:
BCD or BIN
Quantity of digits:
1 to 5 (decimal)
1 to 4 (hex)
When input is on, data designated by operands I and Q is set
to a data register designated by destination operand D1.
This instruction can be used to change preset values for timer
and counter instructions using digital switches. The data that
can be read using this instruction is 0 through 65535 (5 dig-
its), or FFFFh.
DGRD
I
*****
Q
*****
BCD4
D1
*****
Summary of Contents for FC4A-C10R2
Page 1: ...FC4A SERIES Micro Programmable Logic Controller User s Manual FC9Y B812 ...
Page 6: ...PREFACE 4 FC4A MICROSMART USER S MANUAL ...
Page 94: ...2 MODULE SPECIFICATIONS 2 74 FC4A MICROSMART USER S MANUAL ...
Page 184: ...6 ALLOCATION NUMBERS 6 20 FC4A MICROSMART USER S MANUAL ...
Page 218: ...8 ADVANCED INSTRUCTIONS 8 8 FC4A MICROSMART USER S MANUAL ...
Page 240: ...11 BINARY ARITHMETIC INSTRUCTIONS 11 8 FC4A MICROSMART USER S MANUAL ...
Page 244: ...12 BOOLEAN COMPUTATION INSTRUCTIONS 12 4 FC4A MICROSMART USER S MANUAL ...
Page 252: ...13 SHIFT ROTATE INSTRUCTIONS 13 8 FC4A MICROSMART USER S MANUAL ...
Page 274: ...15 WEEK PROGRAMMER INSTRUCTIONS 15 8 FC4A MICROSMART USER S MANUAL ...
Page 378: ...22 DUAL TEACHING TIMER INSTRUCTIONS 22 4 FC4A MICROSMART USER S MANUAL ...
Page 386: ...23 INTELLIGENT MODULE ACCESS INSTRUCTIONS 23 8 FC4A MICROSMART USER S MANUAL ...
Page 408: ...24 ANALOG I O CONTROL 24 22 FC4A MICROSMART USER S MANUAL ...
Page 426: ...26 COMPUTER LINK COMMUNICATION 26 6 FC4A MICROSMART USER S MANUAL ...