Allen-Bradley DF1 User Manual
Allen-Bradley DF1 User Manual

Allen-Bradley DF1 User Manual

Integration kit for iocontrol

Advertisement

Quick Links

ALLEN-BRADLEY DF1 INTEGRATION
KIT FOR ioCONTROL
USER'S GUIDE
SNAP Simple I/O™
SNAP Ethernet I/O™
SNAP Ultimate I/O™
Form 1555-070416—April, 2007
43044 Business Park Drive
Phone: 800-321-OPTO (6786) or 951-695-3000
Fax: 800-832-OPTO (6786) or 951-695-2712
Product Support Services
800-TEK-OPTO (835-6786) or 951-695-3080
Fax: 951-695-3017
Email: support@opto22.com
Web: support.opto22.com
Temecula
CA 92590-3614
www.opto22.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DF1 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Allen-Bradley DF1

  • Page 1 ALLEN-BRADLEY DF1 INTEGRATION KIT FOR ioCONTROL USER’S GUIDE SNAP Simple I/O™ SNAP Ethernet I/O™ SNAP Ultimate I/O™ Form 1555-070416—April, 2007 43044 Business Park Drive Temecula CA 92590-3614 • • Phone: 800-321-OPTO (6786) or 951-695-3000 Fax: 800-832-OPTO (6786) or 951-695-2712 www.opto22.com...
  • Page 2 Allen-Bradley DF1 Integration Kit for ioControl User’s Guide Form 1555-070416—April, 2007 Copyright © 2005–2007 Opto 22. All rights reserved. Printed in the United States of America. The information in this manual has been checked carefully and is believed to be accurate; however, Opto 22 assumes no responsibility for possible inaccuracies or omissions.
  • Page 3: Table Of Contents

    File Types ................10 Allen Bradley DF1 Integration Kit for ioControl User’s Guide...
  • Page 4 Errors Reported by ioControl Slave Subroutine ..........13 Allen Bradley DF1 Integration Kit for ioControl User’s Guide...
  • Page 5: Overview

    (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.
  • Page 6: Iocontrol Architecture

    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.
  • Page 7: Iocontrol Configuration

    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...
  • Page 8: Without A Tag Database

    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...
  • Page 9: Data Highway Communication

    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.
  • Page 10: Direct Serial Communication

    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.
  • Page 12: Ab Typed Write / Ab Protected Typed Logical Write

    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.
  • Page 13: Ab_Slave

    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.
  • Page 14: File Types

    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...
  • Page 15: Error Reporting For Abmaster Subroutines

    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...
  • Page 16: Plc Extended Status Codes

    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...
  • Page 17: Errors Reported By Iocontrol Master Subroutines

    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...

Table of Contents