Skip to main content

6.28. ROT(Rotating Output) Rotating Output

6.28. ROT(Rotating Output):Rotating Output

 

Symbol

Relay combination

Factor

st: Start relay

cnt: Count relay (or Number).

tm: Timer relay(1/100sec unit).

rep: Relay that designates the repeat time (or Number).

out: Relay that outputs the result.

rst: Relay that resets the output status.

tmp:Relay that indicates which value to output for the operation.

Description

If Rung is activated, the relay value which is not 0, between the range of st and cnt will repeatedly output to out relay for rep time.

If a signal input to rst relay, fill 0 from st relay as many number as cnt and initialize the timer value with rep value. Also 0 will be the output for out relay.

This command can be used conveniently in order to output the occurred error numbers within the designated time in case when there are many types of errors for only one device to output the error number.

Usage example

|-------( Error condition 1)-----------[MOV(21,MW51)]---|

|-------( Error condition 2)-----------[MOV(22,MW52)]---|

|-------( Error condition 3)-----------[MOV(23,MW53)]---|

|-------( Error condition 4)-----------[MOV(24,MW54)]---|

|-------( Error condition 5)-----------[MOV(25,MW55)]---|

|-------( Error condition 6)-----------[MOV(26,MW56)]---|

|-----------[ROT(MW51,6,T5,200,MW58,X3,MW60)]---|

|-----------------------------------------[TOD(MW58,YB3)]---|

Above logic saves the error number into MW51~MW56, if more than one error among the 1~6 error conditions occurs. With the ROT command, the occurred error number will be saved in MW58 for 2 seconds and it will be converted to BCD value by TOD command to be displayed rotationally on a output device that is connected to YB3.

If a signal is entered to X3 that is connected to the external error reset, the contents of MW51~MW56 which stored the error number will be cleared to 0, as well as the MW58 and MW60. 0 will be displayed on output device.