EasyManua.ls Logo

YASKAWA VIPA SPEED7 - Page 466

YASKAWA VIPA SPEED7
1007 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
13.5.4.2.5 Create data block for all Modbus slaves
For the communication data of the inverter drives, which are serially connected via
Modbus RTU, a common data block is to be created.
1.
For this 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 "ComDataSlaves". The DB
number can freely be selected such as DB 99. Specify DB 99 and create this as a
global DB with [OK].
ð
The block is created and opened.
3. In "ComDataSlaves" create the following variable:
n ‘Slaves’ of Type UDT 877 - VMC_ComSlavesRTU_REF
13.5.4.2.6 OB 1 - Create instance of communication manager
The FB 877 - VMC_ComManager_RTU ensures that only 1 inverter drive (Modbus slave)
can use the serial interface. As a communication manager, the block sends the jobs to
the respective Modbus slaves and evaluates their responses.
1.
Double-click at ‘Project tree è ...CPU... è PLC program è Program blocks
è Main [OB1]’.
ð
The programming window for OB 1 is opened.
2. Add a call Call FB877, DB877 to OB 1.
ð
The block call is created and a dialog opens to specify the instance data block
‘VMC_ComManager_RTU_877’ .
3. Confirm the query of the instance data block with [OK].
4. Specify the following parameters:
Call FB877, DB877
Ä
Chap. 13.5.7.6 ‘FB 877 - VMC_ComManager_RTU - Modbus RTU communication manager’ page 505
NumberOfSlaves := 1 // Number of connected inverter drives: 1 IN: INT
WaitCycles := "ComWaitCycles" // Minimum number of waiting cycles IN: DINT
SlavesComData := "ComDataSlaves.Slave" // Reference to all communication objects IN-OUT: UDT 877
13.5.4.2.7 OB 1 - Create instance of the V1000 initialization
The FB 881 - VMC_InitV1000_RTU initializes the corresponding inverter drive with the
user data. Before an inverter drive can be controlled, it must be initialized.
1. Add a Call FB881, DB881 to OB 1.
ð
The block call is created and a dialog opens to specify the instance data block
‘VMC_InitV1000_RTU _881’ .
2. Confirm the query of the instance data block with [OK].
3. Specify the following parameters:
Call FB881, DB881
Ä
Chap. 13.5.7.10 ‘FB 881 - VMC_InitV1000_RTU - Modbus RTU initialization’ page 507
Execute := "A1_InitExecute" // The job is started with edge 0-1. IN: BOOL
VIPA SPEED7
Motion control - Simple Motion Control Library
Usage inverter drive via Modbus RTU > Usage in VIPA SPEED7 Studio
HB00 | OPL_SP7 | Operation list | en | 18-30 466

Table of Contents

Related product manuals