Siemens DTU3005-B manual Device Command Registers

Page 30

4 Creating Project Files—PLC to Devices

parameter is used only with Allen-Bradley PLCs. It specifies the file number in the PLC that contains the register values that are transferred to or from the device.

4.Select Save to save the information to the project file, and then select Ok or press Esc to exit the device diagnostic registers screen. If at any time you want to return to the last saved version of the device diagnos- tics registers, select Revert without saving any changes.

4.11Device Command Registers

The device command registers consist of two consecutive registers for each device entered in the device list. These registers allow the PLC to transmit commands to each of the devices. To send a command, all the PLC needs to do is to place the command values into the appropriate PLC reg- isters, which the DTU3005B unit reads and then processes.

The first register contains the command, and the second register contains the data associated with the command. The format of the command registers for each device are described in Appendix E. All the command registers are placed in contiguous locations in the PLC’s registers and

are assigned by the DTU3005 to each device in the order that they are listed in the device list.

To use the command registers for a particular device, the PLC program must do the following, in order:

1.First, set the command word to 0 or -1 (FFFF hexadec- imal).

2.Set the data word to the appropriate value.

3.Set the command word to the appropriate value.

4.After the command is set the PLC must wait for the DTU3005B unit to change the command word to either 0 (to indicate successful processing of the command), or -1 (to indicate an error).

To indicate the location of the command registers on the PLC, follow these steps:

1.Select Device Command Registers from the Edit menu. The Device Command Registers screen appears:

2.Enter the starting register address in the PLC Regis- ters field. The DTU3005 Editor software will determine the proper number of registers for the number of devices entered in the device list and indicate the final register number. These registers must be different from those used for device data and diagnostics. Refer to Appendix A for a list of valid register numbers for your PLC. Failure to use different register addresses will cause communication errors, and may cause unex- pected operation of the devices.

3.Press Shift+Tab, or click the left mouse button to high- light the File field and enter the file number. This parameter is used only with Allen-Bradley PLCs to specify the file number in the PLC that contains the reg- ister values that are transferred to or from the device.

26

Siemens Energy & Automation, Inc.

Image 30
Contents DTU3005-B Qualified Personnel Table of Contents 134 Diagnostic Data FormatWarranty 135Product Overview FeaturesIntroduction Software OverviewPLC to SEAbus PLC to SEAbus Application Supported PLC WinPMModbus Master to SEAbus Modbus Master to SEAbusConnection to Modbus Master using a Multidrop Cable Multi-Drop Modbus Master to SEAbusSEAbus Port Expander SEAbus Port Expander Siemens Energy & Automation, IncInstalling the Software Installing the SoftwareInstalling the Software Starting the Software Menu NavigationUsing the Project Menu Main MenuStarting a New Project Starting the Software Starting the Software Configuring the Project File Creating Project Files-PLC to DevicesApplication Description PLC Setup-Port PLC Protocol Communications SettingsWire RS422 or RS485 Communications DTU AddressOther Configuration Information Device Setup-PortSaving Port 1 Configuration Information Response Time-OutSaving Port 3 Configuration Information Passthrough Setup-PortSaving Port 2 Configuration Information Intermessage Time-OutDevice List Setup Adding a DeviceCreating Project Files-PLC to Devices Configuring Custom Registers for a Single Device Configuring Custom Device RegistersSaving the Device List Configuration Removing a DeviceCreating Project Files-PLC to Devices Configuring Default Custom Device Registers by Device Creating Project Files-PLC to Devices Device Text Setup 7SJ600 Only Description of Returned Trip Global Command Registers Device Diagnostic RegistersDevice Command Registers Saving the Project File Creating Project Files-Modbus Master to Devices Creating Project Files-Modbus Master to DevicesConfiguring the Project File Modbus Setup-Port RS-485 Connector two-wire Device Setup-Port Modbus/Passthrough Setup-Port Modbus MasterWith the 2-Wire RS422 or RS485 Communications Passthrough to Port 2 SEAbusDevice List Setup Creating Project Files-Modbus Master to Devices Configuring Custom Device Registers Creating Project Files-Modbus Master to Devices Configuring Default Custom Device Registers Creating Project Files-Modbus Master to Devices Device Text Setup 7SJ600 Only Value Inputs 2 Global Command Registers Device Command Registers Creating Project Files-SEAbus Port Expander Creating Project Files-SEAbus Port ExpanderMenu, and the Port 1 Passthrough configuration Communications Settings SEAbus Device Setup-Port Configuration InformationTransferring Project Files Transferring Project FilesPersonal Computer RS-232 Port Downloading Projects