RAMP (Ramp Signal)

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@

D

Int.

Error

Zero

Carry

RAMP

S1

-

-

-

-

-

-

6

-

-

S2

-

-

-

-

-

-

D1

-

-

-

-

-

-

-

S3

-

-

-

-

-

-

D2

-

-

-

-

-

-

-

-

-

 

 

 

 

S1

Initial value

S2

Final value

D1

D1+0 : Presen value(BIN 16bits)

D1+1 : Number of executions(BIN 16bits)

S3

Number of shifts

D2

D2+0 : Complietion device(bits)

D2+1 : Bit of selecting data retaining at completion (bit)

 

Error(F110)

The device specified by D1 or D2 exceeds the range of the corresponding device.

 

Supported PLC series & Version

 

XPnF

CPnF

XPnE

CPnE

XPnB

PLC-S

BP

XPnA/1R

CP3A/B/P/U

CP4A~D/U

v6.13

-

-

-

v6.14

v6.14

-

-

-

-

 

RAMP

 

Saves linear-changed value in D1 during S3 scanning of Initial value S1 to final S2 and present scanning number in D1+1, and changes D2 value to ON after completed.

When the execution command is ON, the following processing is executed.

Shifts from the value specified by S1 to the value specified by S2 in the number of times specified by S3.

For S3, designate the number of scans(number of shifts) required for shift from S1 to S2.

No operation if other than 0<S3<32768.

The system uses D1+1 to store the number of times the instruction has been executed.

The value of one variation (one scan) is obtained by the expression below:

 

Program

If Input Signal is changed form Off to On status, D0 is increased by 15 per  1scan and number of times of scans is saved in D1.

If the 6 scans is completed,  the contents of D0 will not change.