Dgrd (Digital Read) - IDEC MICROSmart FC6A Series Ladder Programming Manual

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

12: D
I
ISPLAY
NSTRUCTIONS

DGRD (Digital Read)

DGRD
BCD4
*****
Quantity of digits:
1 to 5 (decimal)
1 to 4 (hex)
Conversion:
BCD or BIN
Note: Always use transistor output to display data using the DGRD instruction.
Valid Devices
Device
I
Q
D1 (Destination 1)
For the valid device address range, see "Device Addresses" on page 2-1.
The DGRD instruction can read 65535 (5 digits) at the maximum. When the read value exceeds 65,535 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 on the CPU module.
Note: 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
Four points from the input specified by I are allocated as the reading inputs.
For example, when I is set to I0, I0 to I3 are allocated.
The number of digits specified by the number of display digits from the output specified by Q are allocated as the digit selection
outputs.
For example, if the number of display digits is three digits, and Q is set to Q0, Q0 to Q2 are allocated.
Notes:
• A maximum of 16 DGRD instructions can be entered in a user program.
• 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 reading data from 5 digital switches to the
destination device, 14 scans are required.
Digital Switch Data Reading Time
2 scan times × (Quantity of digits + 2)
The DGRD instruction requires a scan time longer than the filter time plus 6 ms.
Minimum Required Scan Time
(Scan time) ≥ (Filter time) + 6 ms
• As necessary, adjust the scan time using the constant scan time (D8022) function. The filter time differs according to the input that is used as
the reading input.
When specifying CPU module inputs as the reading inputs: I0 to I27
See the input filter time configured in the WindLDR Function Area Settings. The initial value is 3 ms.
When specifying input module inputs as the reading inputs: From I30
There is no filter time, so calculate the value by replacing the filter time with the input delay time.
• The data that can be read using this instruction is 0 through 65535 (5 digits), or FFFFh. A user program execution error will occur when a
value of 65,536 or greater is specified as a five digit decimal code and the processing will not be executed.
For user program execution errors, see "User Program Execution Errors" on page 3-10.
12-22
I
Q
D1
*****
*****
First output number
First input number
Function
First input number to read
First output number for digit selection
Destination to store results
FC6A S
MICROS
ERIES
MART
When input is on, the setting values for the connected digital
switch are stored in the device specified by D1.
This instruction can be used to change preset values for
timer and counter instructions using digital switches.
I
Q
M
X
X
L
P
M
ADDER
ROGRAMMING
ANUAL
R
T
C
D
P
Constant
X
FC9Y-B1726
Repeat

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents