Chapter 2 Syntax
2-44
Dir
Variable name
Range of values
Default
Unit
Data size
Attribute
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
Label
Mnemonic
parameter1
parameter2
parameter3
parameter4
parameter5
㩷
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
㩷
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
㩷
㩷
㩷
㩷
㩷
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
Summary of Contents for NT2021XA
Page 4: ... Safety Instructions ...
Page 8: ... Contents ...
Page 10: ...Chapter 1 Outline of EzSQ ...
Page 14: ...1 4 Chapter 1 Outline of EzSQ ...
Page 16: ...Chapter 2 Syntax ...
Page 68: ...2 52 Chapter 2 Syntax ...
Page 70: ...Chapter 3 Interface with the Inverter ...
Page 80: ...3 10 Chapter 3 Interface with the Inverter ...