(version 6.0 and above) an easy method of communicating with Allen-Bradley drivers or PLCs using the DF1 protocol. Opto 22 controllers can act as either a master or a slave device. They can be connected directly to the serial port on an Allen-Bradley PLC or to Data Highway networks using standard Data Highway interface devices.
Insert the OptoIntegration CD to run the SETUP.EXE program. The setup wizard will create the folder Program Files\Opto 22\Allen-Bradley DF1 Integration Kit for ioControl. This folder contains all the subroutine and support files for the integration kit, as well as example ioControl strategies.
Also make sure Save to Flash is checked. Click Send. IMPORTANT: Make sure you save your configuration to flash, or your settings will be lost when power is removed. Allen Bradley DF1 Integration Kit for ioControl User’s Guide...
The cables require a DB25 female connector on the Data Highway interface end. Current Opto 22 controllers use screw-type terminal connectors. Opto 22 RS-232 serial connection to DH interface device: Allen Bradley DF1 Integration Kit for ioControl User’s Guide...
Direct Serial Communication Wiring The cables used for connecting an Opto 22 controller to an Allen-Bradley PLC serial port are specified in the drawings below. The cable for a PLC5 requires a DB25 male connector on the PLC5 end. The cable for a SLC requires a DB9 female connector on the SLC end.
Opto 22 RS-232 serial connection to SLC5/04 RS232 port: Direct Serial Communication Full-duplex or half-duplex mode can be used to communicate directly between an Opto 22 controller and an Allen-Bradley slave device. Master subroutines only support half-duplex mode. Subroutines AB Typed Read / AB Protected Typed Logical Read Description AB Typed Read reads a block of data from a PLC 5 data file.
Page 11
Element 6 0 = Full-Duplex or Point-To-Point mode. -1 = Half-Duplex or Multidrop mode. Holds the Station Number of the Allen-Bradley 1770-KF2 Data Highway or Data Highway Element 7 Plus Asynchronous (RS-232-C or RS-422-A) Interface Module. Half-duplex only. File Type.
Communication Mode. Element 6: 0 = Full-Duplex or Point-To-Point mode. -1 = Half-Duplex or Multidrop mode. Holds the Station Number of the Allen-Bradley 1770-KF2 Data Highway or Data Highway Plus Element 7: Asynchronous (RS-232-C or RS-422-A) Interface Module. Half-duplex only.
Add a numeric variable (Integer 32 variable) to your strategy. This is required by the DF1 protocol. Only one variable per strategy is required. Error Code (Integer 32 Values)—Any error codes that the subroutine encounters will be passed back to the strategy through this variable.
PLC file type. File Types Used With AB Master Subroutines ioControl File Type AB File Type Integer, Output, or Input. Floating point Unsigned integer ASCII String Allen Bradley DF1 Integration Kit for ioControl User’s Guide...
Not used. Remote node problem due to download. Cannot execute command due to active IPBs. Not used. Not used. Indicates an extended error code. See “PLC Extended Status Codes” on page Allen Bradley DF1 Integration Kit for ioControl User’s Guide...
61463 Adapter cannot communicate with module. 61464 1771 module response was not valid. 61465 Duplicated label. 61466 File is open; another node owns it. 61467 Another node is the program owner. Allen Bradley DF1 Integration Kit for ioControl User’s Guide...
These error codes will be returned by response string to the polling device as Extended Status Codes. Code Description Address doesn’t point to something usable (bad address). Command cannot be executed (bad command or function code). Illegal data type (bad file number). Allen Bradley DF1 Integration Kit for ioControl User’s Guide...
Page 18
ERROR REPORTING FOR ABMASTER SUBROUTINES Allen Bradley DF1 Integration Kit for ioControl User’s Guide...
Need help?
Do you have a question about the DF1 and is the answer not in the manual?
Questions and answers