Yaskawa YASNAC PC NC PLC Programming Manual User Manual

Page 123

Advertising
background image

6 - 87

YASNAC PCNC PLC Programming Manual Chapter 6: PLC Instructions

(21)SUBP 039 (Binary-data Division) RR after operation:

Ù

a) Function

The instruction executes division of 1-, 2-, or 4-byte binary data.

The result of operation is set to the registers: the numeric value of operation result
is set to the register designated by the operation result output address and the sign
information to #2999.

(b) Example

(c) Control conditions

Designation of the dividend data address (APSH#XXXX)

Designate the address where the dividend data is stored.

Designation of the divisor data address (APSH/IPSHD#XXXX)

Designate the address where the divisor data is stored.

Designation of the operation result output address (APSH#XXXX)

Designate the address where the result of operation is output.

The address is stored as 4-byte data.

Advertising