AxisErrorID := "A1_AxisErrorID" // Status: Additional error information for AxisError OUT: WORD
DriveError := "A1_DriveError" // Status: Error on the inverter drive OUT: BOOL
ActualVelocity := "A1_ActualVelocity" // Status: Current velocity OUT: REAL
InVelocity := "A1_InVelocity" // Status target velocity OUT: BOOL
CmdDone := "A1_CmdDone" // Status: Command finished OUT: BOOL
CmdBusy := "A1_CmdBusy" // Status: Command in progress OUT: BOOL
CmdAborted := "A1_CmdAborted" // Status: Command aborted OUT: BOOL
CmdError := "A1_CmdError" // Status: Command error OUT: BOOL
CmdErrorID := "A1_CmdErrorID" // Status: Additional error information for CmdError OUT: WORD
CmdActive := "A1_CmdActive" // Status: Active command OUT: INT
DirectionPositive := "A1_DirectionPositive" // Status: Direction of rotation positive OUT: BOOL
DirectionNegative := "A1_DirectionNegative" // Status: Direction of rotation negative OUT: BOOL
Axis := "A1_V1000".AxisData // Reference to the general axis data IN-OUT: UDT 879
V1000 := "A1_V1000".V1000Data // Reference to the general axis data
// of the inverter drive
IN-OUT: UDT 881
AxisComData := "ComDataSlaves".Slaves.Slave(1) // Reference to the communication data IN-OUT: UDT 878
13.5.6.3.9 OB 1 - Create instance read parameter
With the FB 879 - VMC_ReadParameter_RTU you have read access to the parameters
of an inverter drive, which is serially connected via Modbus RTU. For the parameter data
a DB is to be created.
1.
Click at ‘Project tree è ...CPU...PLC program è Program blocks
è Add new block’.
ð
The dialog ‘Add block’ is opened.
2. Select the block type ‘DB block’ and assign it the name "A1_TransferData". The DB
number can freely be selected. Specify DB 98 and create this as a global DB with
[OK].
ð
The block is created and opened.
3. In "A1_TransferData" create the following variables:
n ‘Data_0’ of type WORD
n ‘Data_1’ of type WORD
n ‘Data_2’ of type WORD
n ‘Data_3’ of type WORD
4. Add a Call FB879, DB879 to OB 1.
ð
The block call is created and a dialog opens to specify the instance data block
‘VMC_ReadParameter_RTU’ .
5. Confirm the query of the instance data block with [OK].
6. Specify the following parameters:
Call FB879, DB879
Ä
Chap. 13.5.7.8 ‘FB 879 - VMC_ReadParameter_RTU - Modbus RTU read parameters’ page 506
Execute := "A1_RdParExecute" // The job is started with edge 0-1. IN: BOOL
StartAddress := "A1_RdParStartAddress" // Start address of the 1. register IN: INT
VIPA SPEED7
Motion control - Simple Motion Control Library
Usage inverter drive via Modbus RTU > Usage in Siemens TIA Portal
HB00 | OPL_SP7 | Operation list | en | 18-30 501