A
A-4 CP1L Programming Examples
SYSMAC CP1L Getting Started Guide
153
Ap
pend
ix
Programming Example
z
Function Blocks Used
Status refresh
(_INV002_Refresh)
Execute rotation (frequency
specification in Hz)
(_INV032_MoveVelocity_Hz)
Decelerate to stop
(_INV060_Stop)
Required for communication with the
inverter.
1 FB is used for each PLC serial port.
1
"
Status refresh
"
FB will be used for a
serial port, even if the serial port has
multiple inverters connected.
• Issues communication commands to
inverters.
• Processes communication errors.
• Assigns priorities when multiple
commands are issued.
Specifies start signal, rotation direction,
and frequency in Hz.
Decelerates an operating axis to a stop.
_INV002_Refresh
(BOOL)
EN
(BOOL)
Error
(WORD)
ErrorID
(INT)
NodeAddr
(BOOL)
BUSY
(BOOL)
ENO
(DWORD)
ModelTypeMV
(WORD)
AreaID
(DWORD)
Scanlist
(INT)
PortNo
(INT)
UnitSelect
(INT)
AreaNo
(UINT)
IntervalCount
(WORD)
MSGAreaID
(INT)
MSGAreaNo
Specify host
unit
Serial port No.
Scan list
MV/RV type
Interval
I/F area type
I/F area No.
Message area
type
Message area
No.
Busy flag
Axis No.
in use
Error
Error code
_INV032_MoveVelocityHz
(BOOL)
EN
(BOOL)
Error
(WORD)
ErrorID
(BOOL)
Command Aborted
(BOOL)
InVelocity
(BOOL)
ENO
(INT)
Direction
(WORD)
AreaID
(REAL)
Velocity
(BOOL)
Execute
(INT)
NodeNo
(INT)
AreaNo
Inverter No.
Start
Frequency
Rotation
direction
Utilization
area type
Utilization
area No.
Matching
speed
Force quit
Error
Error code
_INV060_Stop
(BOOL)
EN
(BOOL)
Error
(WORD)
ErrorID
(BOOL)
Done
(BOOL)
ENO
(WORD)
AreaID
(BOOL)
Execute
(INT)
NodeNo
(INT)
AreaNo
Inverter No.
Start
Area type
Area No.
Deceleration
complete
Error
Error code
W07E-EN-02+CP1L+GettingStartedGuide.book Seite 153 Montag, 15. September 2008 11:15 11