ICP DAS USA 100-700 PLCS, DB25, DN-3000 user manual Word Motor Drive Address Command

Page 43

DeviceNet to Motor Drives

COMMAND BLOCK

Using I/O data to update and/or monitor motor drive parameters requires very little programming in your DeviceNet Host device – the configuration of the DN-3000 specifies which motor drive parameters are mapped to which words of I/O data. However, you can only access a total of 32 motor drive parameters this way, and those parameters are fixed when the DN-3000 is configured. If your application requires that you access more than 32 motor drive parameters, you must either use multiple DN-3000s, or use a Command Block.

A Command Block allows your DeviceNet Host to issue commands at run-time to read or write any valid parameter of any motor drive connected to Port 2 of the DN-3000. The Command Block reserves the first 3 words of Output data for commands issued by the Host, and the first 3 words of Input data for the results of those commands (along with any returned data). Commands are issued by moving a Motor Drive Address, Parameter Number, any required Parameter Data (for write commands only), and a Command code into the Command Block, as follows:

 

15

14

13

12

11

 

10

9

8

7

6

5

 

4

3

2

1

0

word 1

 

Motor Drive Address (0-255)

 

0

0

0

 

0

 

Command

 

word 2

 

 

 

 

 

 

 

Parameter

Number

 

 

 

 

 

 

 

word 3

 

 

 

 

 

Parameter Data (write command only)

 

 

 

 

 

The DN-3000 looks for changes in the Command Block data to determine when there is a new request to be processed, “throwing out” any invalid commands received. Valid Commands are 1 (read) and 2 (write). To ensure that partial commands are not processed (in systems where it is possible that Output data could be sent by the host before all 4 words of data have been moved into the command block), you should set the Command to 0 (indicating no command), then place the data in words 2-3, and only set the Command to 1 or 2 after all of the other data is in place. After a command has been processed by the DN- 3000, it will “echo” the command in the Command Result Block in the Input data, and set the Result Code and any Returned Parameter Data, as follows:

 

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

word 1

 

Motor Drive Address (0-255)

 

1

Result Code

 

Command

 

word 2

 

 

 

 

 

 

Parameter

Number

 

 

 

 

 

 

word 3

 

 

 

 

Returned Parameter Data (read command only)

 

 

 

 

If a read command (1) was issued, the Returned Parameter Data will contain the parameter data read from the specified Motor Drive. If a write command (2) was issued, the Returned Parameter Data will be the same as for the issued command. The Result Code indicates the result of processing the issued command. Valid Result Codes are as follows:

Result Code

Meaning

0Command was completed successfully.

1DN-3000 could not communicate with indicated motor drive.

2-6

Drive specific error code (see “Application Notes” for motor drive).

7

Command was invalid.

37

Image 43
Contents DN-3000 Page Warranty Warranty & NoticesTable of Contents Application Notes Motor Drives Page Introduction IntroductionInstallation Software InstallationGeneral Information Software START-UP Software InformationCreating a Project File Creating Project FilesProject Types Additional Project Menu Sub-Headings Devicenet to Plcs or Devices DeviceNet to PLCs or DevicesDevice Profile DeviceNet Host to Serial PLC with Pass-Through Connection Example ApplicationsDeviceNet Host to Multi-Dropped Serial PLCs Multiple DN-3000s with Different PLC or Device Types DeviceNet to PLCs or Devices Edit Menu Configuring Port #1, DevicenetMAC ID of DN3000 PLC/Device Protocol Configuring Port #2 Plcs or DevicesWire RS422 or RS485 Communications Intermessage Time-Out Configuring Port # 3 PassthroughUse I/O Data Data ConfigurationOutput Data Use Command BlockUse Diagnostics Output Data SizeInput Data Input Data SizeOutput Data Table Register Number Use Output WordPLC/Device Address File Number Allen-Bradley PLCs onlyInput Data Table PLC/DeviceAddress Use Input WordCommand Block Devicenet to Motor Drives DeviceNet to Motor DrivesDeviceNet Host to Multi-Dropped Serial Motor Drives DeviceNet Host to Serial Motor DriveMultiple DN-3000s with Different Motor Drive Types DeviceNet to Motor Drives Edit Menu MAC ID of DN3000 Motor Drive Type Configuring Port # 2 Motor DrivesMinimum Delay Between Messages Data Configuration Use Command Block Input Data Size Output Data Table Parameter Number Motor Drive AddressInput Data Table Use Input Word Number Word Returned Parameter Data read command only Word Motor Drive Address CommandNumber Word Parameter Data write command only Word Motor Drive Address Result Code CommandOperation of the Link Switch Upper Link Configuration Mitsubishi Drives OnlyException Table Mitsubishi Drives Only Transferring Project Files Transferring Project FilesVerify Transfer OptionsDownload Project to DN3000 Upload Project from DN3000Options Settings Options SettingsSET Directory Current Directory Path Graphic Area SET COM Port Save Options to Disk Default OptionsSET Printer Options Load Options from DiskPhysical Dimensions Power RequirementsTechnical Information Visual LED Indicators DIP Switch SettingsSwitch # Normal Off Configuration Diagnostic Flashes followed by a pause Invalid DIP Switch Setting DN-3000 Troubleshooting InformationFlashes followed by a pause Protocols Supported Registers AccessedApplication Notes PLCs and Devices ALLEN-BRADLEY PLC 5, SLC500 and Micrologix PlcsIdec FA Series Plcs Idec MICRO-3 PlcsLink Adapter Requirement Koyo / PLC Direct 205 Series Plcs Memory Address PLC Registers AccessedKoyo / PLC Direct / TI 305 Series Plcs RTS Control Mitsubishi FX Series PlcsModicon Plcs and Modbus Devices Omron PlcsPass-Through Port Protocol InformationPassthrough Port Note Square D Model 100-700 PlcsToshiba T Series Plcs Toshiba EX and M Series PlcsWestinghouse Plcs Baldor Motor Drives Application Notes Motor DrivesDrive Parameter Numbers Assigned By Panel-Tec Drive Addresses Assigned By Panel-Tec Configuring a Baldor Drive For Serial CommunicationsYaskawa Motor Drives Configuring a Woods Drive For Serial CommunicationsMitsubishi Motor Drives Woods Motor DrivesDN3000 Configuration Cable Cable DiagramsSolder End Allen BradleyGE Fanuc DN3000 GE Fanuc 90/20, 30Idec Koyo/PLC Direct Mitsubishi Mitsubishi FX SeriesModicon ModiconHost Link OmronSiemens S7 TSX07 Square DTI5 232 Port DN3000 Simatic TI5 SeriesToshiba DN3000 ToshibaBaldor Baldor Motor DrivesMitsubishi Motor Drives Woods Motor Drives Yaskawa Motor Drives DeviceNet DN3000 DeviceNet Cable