Chapter 5 Instruction Words
5 - 39
Variable name Range of values Default Unit Data size Attribute
Dir
Rotation direction
monitoring
0: Stop
1: Forward rotation
2: Reverse rotation
- -
Unsigned
1-word data
Readable
- Explanation
This variable can be used to monitor the direction of motor operation by the inverter. The data
monitored with this variable corresponds to the data monitored by the rotation direction monitoring
function (d003). This variable is read-only.
- Sample program: Program to output the output frequency data to a general-purpose analog output
while operating the motor for reverse rotation at 60 Hz and forward rotation at 60 Hz
:
U(00)= 5000 : Set the offset data.
LOOP U(01)= Dir : Fetch the operation direction data.
UL(01)= FM : Fetch the output frequency data.
UL(01)= UL(01) * 5000 : Convert the scale to 0% to 50%.
UL(01)= UL(01) / 6000
select U(01)
case 1 : When the inverter operates the motor for
forward rotation
UL(00)= U(00) + UL(01)
case 2 : When the inverter operates the motor for
reverse rotation
UL(00)= U(00) - UL(01)
case else : When the motor is stopped
UL(00)= U(00)
end select
YA(1)= UL(00) : Output the data to an analog output (AM
terminal).
goto LOOP
: