Chapter 5 Instruction Specifications
5-56
Item number
Arithmetic instructions-11
Name
Signed binary division
Ladder format
Condition code
Processing time (
µ
s)
Remark
R7F4
R7F3
R7F2
R7F1
R7F0
Average Maximum
d = s1 S/ s2
DER
ERR
SD
V
C
↕
z
z
↕
z
Command format
Number of steps
101
Condition
Steps
d = s1 S/ s2
Double word
6
Bit
Word
Double word
Usable I/O
X
Y
R,
L,
M
TD, SS,
CU, CT
WX WY
WR,
WM
TC DX DY
DR,
DM
C
o
ns
ta
nt
Other
d
Substitution destination
{
{
s1 Dividend
{
{
{
{
s2 Divisor
{
{
{
{
Function
z
Divides s1 by s2 as signed binary data, and substitutes the quotient into d in signed binary data. The remainder is set in the
special internal output DRF016 signed binary data.
z
The DER flag is 1 if s2 is 0, and the operation is not performed. As long as s2 is not 0, it is 0 and the operation is
performed.
z
The V flag is 1 when the quotient is a positive value and exceeds H7FFFFFFF. Otherwise, it is 0.
Eexample) DR0060 = DR0056 S/ DR0058
WR0059 WR0058
DR0058
WR0057 WR0056
DR0056
DRF016
WR0061 WR0060
DR0060
WRF017 WRF016
• • •
z
s1, s2
– 2147483648 to +2147483647 (decimal)
H80000000 to H7FFFFFFF (hexadecimal)
Program example
X00000
DR0060 = DR0056 S/ DR0058
LD X00000
[
DR0060 = DR0056 S/ DR0058
]
Program description
z
When input X00000 turns on, the value of DR0056 is divided by the value in DR0058, then substituted into DR0060 as
signed binary data. The remainder is substituted into special internal output DRF016 as signed binary data.
d =
s1 S
/ s
2
Содержание HIDIC MICRO-EH
Страница 1: ...HITACHI PROGRAMMABLE CONTROLLER APPLICATION MANUAL NJI 350B X ...
Страница 12: ...MEMO ...
Страница 14: ...Chapter 1 Features 1 2 MEMO ...
Страница 50: ...Chapter 4 Product lineup and wiring 4 18 MEMO ...
Страница 196: ...Chapter 5 Instruction Specifications 5 146 ...
Страница 263: ...Chapter 11 Communication Specifications 11 10 MEMO ...