ICP DAS USA 100-700 PLCS, DB25, DN-3000 user manual Command Block

Page 28

DeviceNet to PLCs or Devices

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 PLC/Device registers are mapped to which words of I/O data. However, you can only access a total of 32 registers this way, and those registers are fixed when the DN-3000 is configured. If your application requires that you access more than 32 registers, 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 register in any PLC/Device connected to Port 2 of the DN-3000. The Command Block reserves the first 4 words of Output data for commands issued by the Host, and the first 4 words of Input data for the results of those commands (along with any returned data). Commands are issued by moving a PLC/Device Address, File Number, Register Number, any required Register 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

 

 

PLC/Device Address (0-255)

 

 

0

0

0

 

0

 

Command

 

word 2

 

 

 

 

 

 

 

 

File

Number

 

 

 

 

 

 

 

 

word 3

 

 

 

 

 

 

 

Register Number

 

 

 

 

 

 

 

word 4

 

 

 

 

 

Register 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-4, 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 Register Data, as follows:

 

15

14

13

12

11

10

9

 

8

7

6

5

4

3

2

1

0

word 1

 

 

PLC/Device Address

 

 

 

1

Result Code

 

Command

 

word 2

 

 

 

 

 

 

 

File

Number

 

 

 

 

 

 

 

word 3

 

 

 

 

 

 

Register Number

 

 

 

 

 

 

word 4

 

 

 

 

Returned Register Data (read command only)

 

 

 

 

If a read command (1) was issued, the Returned Register Data will contain the register data read from the specified PLC/Device. If a write command (2) was issued, the Returned Register 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 PLC/Device.

7

Command was invalid.

22

Image 28
Contents DN-3000 Page Warranty & Notices WarrantyTable of Contents Application Notes Motor Drives Page Introduction IntroductionInstallation Software InstallationGeneral Information Software Information Software START-UPCreating Project Files Creating a Project FileProject 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 Configuring Port #1, Devicenet DeviceNet to PLCs or Devices Edit MenuMAC ID of DN3000 Configuring Port #2 Plcs or Devices PLC/Device ProtocolWire RS422 or RS485 Communications Configuring Port # 3 Passthrough Intermessage Time-OutData Configuration Use I/O DataUse Command Block Use DiagnosticsOutput Data Size Output DataInput Data Size Input DataOutput Data Table Use Output Word PLC/Device AddressFile Number Allen-Bradley PLCs only Register NumberInput Data Table Use Input Word PLC/DeviceAddressCommand Block DeviceNet to Motor Drives Devicenet to Motor DrivesDeviceNet Host to Serial Motor Drive DeviceNet Host to Multi-Dropped Serial Motor DrivesMultiple DN-3000s with Different Motor Drive Types DeviceNet to Motor Drives Edit Menu MAC ID of DN3000 Configuring Port # 2 Motor Drives Motor Drive TypeMinimum Delay Between Messages Data Configuration Use Command Block Input Data Size Output Data Table Motor Drive Address Parameter NumberInput Data Table Use Input Word Word Motor Drive Address Command Number Word Parameter Data write command onlyWord Motor Drive Address Result Code Command Number Word Returned Parameter Data read command onlyUpper Link Configuration Mitsubishi Drives Only Operation of the Link SwitchException Table Mitsubishi Drives Only Transferring Project Files Transferring Project FilesTransfer Options Download Project to DN3000Upload Project from DN3000 VerifyOptions Settings Options SettingsSET Directory Current Directory Path Graphic Area SET COM Port Default Options SET Printer OptionsLoad Options from Disk Save Options to 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 Registers Accessed Application Notes PLCs and DevicesALLEN-BRADLEY PLC 5, SLC500 and Micrologix Plcs Protocols SupportedIdec FA Series Plcs Idec MICRO-3 PlcsLink Adapter Requirement Memory Address PLC Registers Accessed Koyo / PLC Direct 205 Series PlcsKoyo / PLC Direct / TI 305 Series Plcs Mitsubishi FX Series Plcs Modicon Plcs and Modbus DevicesOmron Plcs RTS ControlProtocol Information Pass-Through PortSquare D Model 100-700 Plcs Passthrough Port NoteToshiba T Series Plcs Toshiba EX and M Series PlcsWestinghouse Plcs Baldor Motor Drives Application Notes Motor DrivesDrive Parameter Numbers Assigned By Panel-Tec Configuring a Baldor Drive For Serial Communications Drive Addresses Assigned By Panel-TecConfiguring a Woods Drive For Serial Communications Mitsubishi Motor DrivesWoods Motor Drives Yaskawa Motor DrivesCable Diagrams DN3000 Configuration CableAllen Bradley Solder EndGE Fanuc 90/20, 30 GE Fanuc DN3000Idec Koyo/PLC Direct Mitsubishi FX Series MitsubishiModicon ModiconOmron Host LinkSiemens S7 Square D TSX07Simatic TI5 Series TI5 232 Port DN3000Toshiba Toshiba DN3000Baldor Motor Drives BaldorMitsubishi Motor Drives Woods Motor Drives Yaskawa Motor Drives DeviceNet Cable DeviceNet DN3000