Appendix D How to Use PLC Function

Operands:

D: Device to be rotated n: Number of bits to be rotated in 1 rotation

Explanations:

1.This instruction rotates the device content designated by D to the left for n bits.

2.This instruction adopts pulse execution instructions (ROLP).

Program Example:

When X0 goes from Off to On, the 16 bits (4 bits as a group) in D10 will rotate to the left, as shown in the figure below. The bit marked with will be sent to carry flag M1022.

 

X0

 

 

 

 

 

 

D10

 

K4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Rotate to the left

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

upper bit

 

 

 

 

 

 

 

 

 

 

lower bit

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Carry

 

 

1

1

1

1

1

1 1

1

0

0

0

0

0

0

0

0

D10

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

flag

 

 

 

 

 

 

 

 

 

 

16 bits

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

After one rotation

 

 

 

 

 

 

 

 

 

 

upper bit

 

 

 

 

 

 

to the left

 

lower bit

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1

1

1

1 0

0

0

0

0

0

0

0

1

1

1

1

D10

Carry

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

flag

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D.5.11 Special Application Commands for the AC Motor Drive

API

53

 

Mnemonic

Operands

Function

 

 

 

 

 

 

DHSCS

 

S1, S2, D

Compare (for high-speed counter)

 

 

 

 

 

Type

Bit Devices

 

 

Word devices

 

 

 

Program Steps

OP

X

Y

M

K

H

KnX KnY KnM

T

C

D

DHSCS: 13 steps

 

S1

 

 

 

*

*

 

 

 

*

 

S2

 

 

 

 

 

 

 

*

 

 

D

 

*

*

 

 

 

*

*

*

 

Operands:

S1: Comparison Value S2: High-speed counter C235 D: Comparison result Explanations:

1.It needs optional PG card to receive external input pulse.

2.To count automatically, please set the target value by using DHSCS command and set M1028=On. The counter C235 will be ON when the count number = target value. If you want to clear C235, please set M1029=ON.

D-58

Revision June 2008, 04EE, SW--PW V1.11/CTL V2.11

Page 341
Image 341
Delta Electronics VFD-E manual Special Application Commands for the AC Motor Drive, D10