Allen-Bradley DF1 Driver Help © 2014 Kepware Technologies
Allen-Bradley DF1 Driver Help 2 Table of Contents Table of Contents 2 Allen-Bradley DF1 Driver Help 5 Overview 5 Channel Setup 6 Link Settings 6 Full Duplex 7 Half Duplex Master 7 KF2/KF3 Half Duplex Master 8 Radio Modem 9 Device Setup 10 Modem Setup 10 Protocol Settings 10 Cable Connections 11 SLC500 Connection 12 15-Pin Module Connection 12 25-Pin Module Connection 12 13 Function File Options Function File Block Writes 13 SLC500 Slot Configuration 14 SLC 500 Modular I
Allen-Bradley DF1 Driver Help 3 Integer Files 31 Float Files 32 ASCII Files 32 String Files 33 BCD Files 33 Long Files 34 Micrologix PID Files 34 PLC5 PID Files 35 Micrologix Message Files 36 PLC5 Message Files 37 Block Transfer Files 38 High Speed Counter File (HSC) 38 Real-Time Clock File (RTC) 39 Channel 0 Communication Status File (CS0) 40 Channel 1 Communication Status File (CS1) 40 I/O Module Status File (IOS) 41 Error Descriptions 42 42 Address Validation Missing a
Allen-Bradley DF1 Driver Help 4 Unable to read function file on device '' [Status=, Ext. Status=< EXT. STS>] 47 Unable to read function file on device '' [Status=, Ext. Status=< EXT. STS>]. Block deactivated 48 Unable to read data starting at on device ''. Framing error 48 Unable to read function file on device ''.
Allen-Bradley DF1 Driver Help 5 Allen-Bradley DF1 Driver Help Help version 1.
Allen-Bradley DF1 Driver Help 6 Channel Setup Supported Link Protocols Allen-Bradley DF1 Full-Duplex (point-to-point communication) Allen-Bradley DF1 Half-Duplex Master (multi-drop communication) also known as Allen-Bradley DF1 PolledMode.* Allen-Bradley DF1 Radio Modem (point-to-point and multi-drop communication).** *Slave-to-slave communication is not supported. **Store and forward feature is not supported.
Allen-Bradley DF1 Driver Help 7 l If the destination device is not on a DH+ or DH-485 network, the device being communicated with is a Micrologix, SLC500, or PLC-5 PLC. The station number for this configuration can be set to an arbitrary unique address. Standard Serial Configuration Station Number = Arbitrary unique address on the network for the local PC. The range for DH-485 is 1 to 63. Otherwise, the range is 0 to 255. DH+/DH-485 Converter Configuration Station Number = Converter's node address (e.g.
Allen-Bradley DF1 Driver Help 8 the master message. Incoming requests to the slave are placed in what is termed a "sink". Once the slave performs the operation requested, it places the result in what is termed a "source". Number of Attempts The number of attempts for master messages and polls share the same number of attempts as configured in the device Fail after xxx successive timeouts.
Allen-Bradley DF1 Driver Help 9 The number of attempts for master messages and polls share the same number of attempts as configured in the device Fail after xxx successive timeouts. This attempt count is misleading in Half-Duplex mode since there are multiple messages sent from the master in a single data request.
Allen-Bradley DF1 Driver Help 10 Device Setup Supported Devices Micrologix Series* SLC500 Series* PLC-5 Series (excluding the PLC-5/250 and PLC-5/VME series) RSLogix5000 *Radio Modem link protocol requires the following firmware upgrades: SLC 5/03, SLC 5/04 and SLC 5/05: Series C FRN6 MicroLogix 1200: Series C FRN7 MicroLogix 1500: Series C FRN8 Device ID The Device ID is the Allen-Bradley DF1 network address of the PLC. For PLCs on a DH-485 or DH+ network, the range is 1-63.
Allen-Bradley DF1 Driver Help 11 Upper Word Lower Word SEEEEEEE EMMMMMMM MMMMMMMM MMMMMMMM Byte 3 Byte 2 Byte 1 Byte 0 Allen-Bradley PLC-5 devices transfer binary Floating-point data on the serial link in the following order: Upper Word Lower Word Byte 2 Byte 3 Byte 0 Byte 1 This means the upper word is received first, followed by the lower word.
Allen-Bradley DF1 Driver Help 12 l Allen Bradley KF2 or compatible device. A standard null modem cable is used to connect the PC to the KF2 device. l DataLink DL Interface Cards (PCI/ISA/PC104). Consult AB documentation for DH+ wiring. l DataLink DL4500 Ethernet-to-DH+ Converter. Consult DL4500 documentation for wiring. SLC500 Connection 15-Pin Module Connection 25-Pin Module Connection www. kepware.
Allen-Bradley DF1 Driver Help 13 Function File Options Function files are structure-based files, similar to PD and MG data files, and are unique to the Micrologix 1200 and 1500. For more information on a specific function file are supported in the Allen-Bradley DF1 Device Driver, select a link from the list below.
Allen-Bradley DF1 Driver Help 14 1. Go to the Function File Options tab in the Device Properties dialog. Check the checkbox labeled Block write supporting function files?. This notifies the driver to utilize block writes on function files supporting block writes. The changes will be effective immediately after hitting the OK or Apply buttons. 2. Write the desired value to the sub element tag(s) in question. The sub element tag(s) will immediately take on the value(s) written to it.
Allen-Bradley DF1 Driver Help 15 1746-IN16 16 Input 24 VAC/VDC 1 0 1746-ITB16 16 Input [Fast] (Sink) 24 VDC 1 0 1746-ITV16 16 Input [Fast] (Source) 24 VDC 1 0 1746-IV8 8 Input (Source) 24 VDC 1 0 1746-IV16 16 Input (Source) 24 VDC 1 0 1746-IV32 32 Input (Source) 24 VDC 2 0 1746-OA8 8 Output (Triac) 100/240 VAC 0 1 1746-OA16 16 Output (Triac) 100/240 VAC 0 1 1746-OB8 8 Output [Trans] (Source) 10/50 VDC 0 1 1746-OB16 16 Output [Trans] (Source) 10/50 VDC 0 1 1746-OB32 32 Output [
Allen-Bradley DF1 Driver Help 16 1746-INI4VI Analog 4 Ch. Isol. Volt./Current Input 8 8 1746-INT4 4 Ch.
Allen-Bradley DF1 Driver Help 17 2. Next, map the tags to the different data files as shown in the image below. 3. Ensure that the Allen-Bradley DF1 Driver and controller have matching settings for the Serial Port and System Protocol (such as the baud rate, data bits, and parity parameters shown in the images below). Note: The System Protocol tab's Protocol option should be set to DF1 Point to Point. www. kepware.
Allen-Bradley DF1 Driver Help 18 4. Next, create the desired tags within the Allen-Bradley DF1 Driver. Note: The MicroLogix model is the only model that supports "L" data types, which are 32 bit data types equivalent to the controller's DINT data type. www. kepware.
Allen-Bradley DF1 Driver Help 19 www. kepware.
Allen-Bradley DF1 Driver Help 20 Data Types Description Data Type Description Boolean Single bit Byte Unsigned 8 bit value bit 0 is the low bit bit 7 is the high bit Char Signed 8 bit value bit 0 is the low bit bit 6 is the high bit bit 7 is the sign bit Word Unsigned 16 bit value bit 0 is the low bit bit 15 is the high bit Short Signed 16 bit value bit 0 is the low bit bit 14 is the high bit bit 15 is the sign bit DWord Unsigned 32 bit value Long Signed 32 bit value BCD Two byte packed B
Allen-Bradley DF1 Driver Help 21 Address Descriptions Address specifications vary depending on the model in use. Select a link from the following list to obtain specific address information for the model of interest.
Allen-Bradley DF1 Driver Help 22 SLC5/02 Addressing File Specific Addressing Output Files Input Files Status Files Binary Files Timer Files Counter Files Control Files Integer Files SLC5/03 Addressing File Specific Addressing Output Files Input Files Status Files Binary Files Timer Files Counter Files Control Files Integer Files Float Files ASCII Files String Files SLC5/04 Addressing File Specific Addressing Output Files Input Files Status Files Binary Files Timer Files Counter Files Control Files Integ
Allen-Bradley DF1 Driver Help 23 Status Files Binary Files Timer Files Counter Files Control Files Integer Files Float Files ASCII Files String Files BCD Files PID Files Message Files Block Transfer Files Output Files The syntax for accessing data in an Output file differs depending on the PLC model. Arrays are not supported for output files. The default data types are shown in bold.
Allen-Bradley DF1 Driver Help 24 Modules # Input Words # Output Words 1769-HSC 35 34 1769-IA8I 1 0 1769-IA16 1 0 1769-IF4 6 0 1769-IF4XOF2 8 2 1769-IF8 12 1 1769-IM12 1 0 1769-IQ16 1 0 1769-IQ6XOW4 1 1 1769-IQ16F 1 0 1769-IQ32 2 0 1769-IR6 8 0 1769-IT6 8 0 1769-OA8 0 1 1769-OA16 0 1 1769-OB8 0 1 1769-OB16 0 1 1769-OB16P 0 1 1769-OB32 0 2 1769-OF2 2 2 1769-OF8C 11 9 1769-OF8V 11 9 1769-OV16 0 1 1769-OW8 0 1 1769-OW16 0 1 1769-OW8
Allen-Bradley DF1 Driver Help 25 Slot 2 = 1769-OW8 = 1 Output Word Slot 3 = 1769-IA16 = 0 Output Word Slot 4 = 1769-OF8V = 9 Output Word Bit 5 of Slot 4 = 4 + 2 + 1 = 7 words = O:7/5 SLC 500 Syntax The default data type is shown in bold. Syntax Data Type Access O: Short, Word, BCD Read Only O:. Short, Word, BCD Read Only O:/ Boolean Read Only O:.
Allen-Bradley DF1 Driver Help 26 Input Files The syntax for accessing data in an Input file differs depending on the PLC model. Arrays are not supported for Input files. The default data types are shown in bold. PLC-5 Syntax Syntax Data Type Access I: Short, Word, BCD Read/Write I:/ Boolean Read/Write I/bit Boolean Read/Write Note: Word and bit address information is in octal for PLC-5 models. This follows the convention of the programming software.
Allen-Bradley DF1 Driver Help 27 1769-IR6 8 0 1769-IT6 8 0 1769-OA8 0 1 1769-OA16 0 1 1769-OB8 0 1 1769-OB16 0 1 1769-OB16P 0 1 1769-OB32 0 2 1769-OF2 2 2 1769-OF8C 11 9 1769-OF8V 11 9 1769-OV16 0 1 1769-OW8 0 1 1769-OW16 0 1 1769-OW8I 0 1 1769-SDN 66 2 1769-SM1 12 12 1769-SM2 7 7 1769-ASCII 108 108 1762-IA8 1 0 1762-IF2OF2 6 2 1762-IF4 7 0 1762-IQ8 1 0 1762-IQ8OW6 1 1 1762-IQ16 1 0 1762-OA8 0 1 1762-OB8 0 1 1762-OB16 0 1 1
Allen-Bradley DF1 Driver Help 28 Ranges PLC Model Min Slot Max Slot Max Word Micrologix NA NA 2047 SLC 500 Open NA NA 1 SLC 5/01 1 30 * SLC 5/02 1 30 * SLC 5/03 1 30 * SLC 5/04 1 30 * SLC 5/05 1 30 * PLC-5 Family NA NA 277 *The number of Input or Output words available for each I/O module can be found in the Modular I/O Selection Guide. For more information, refer to Device Setup. **Octal.
Allen-Bradley DF1 Driver Help 29 S/bit Boolean Read/Write *Array types. The number of array elements (in bytes) cannot exceed the block request size specified. This means that array size cannot exceed 16 words given a block request size of 32 bytes. Ranges PLC Model Max Word Micrologix 96 All SLC 96 PLC-5 127 The maximum word location is one less when accessing as a 32 bit data type (Long, DWord or Long BCD). Examples Example Description S:0 Word 0. S/26 Bit 26. S:4/15 Bit 15 word 4.
Allen-Bradley DF1 Driver Help 30 Timer Files Timer files are a structured type whose data is accessed by specifying a file number, an element and a field. The default data types are shown in bold. Syntax Data Type Access T:. Depends on field Depends on field The following fields are allowed for each element. For the usage of each field, refer to the PLC's documentation.
Allen-Bradley DF1 Driver Help 31 C5:10.DN Done bit of counter 10 file 5. C15:0.PRE Preset of counter 0 file 15. Control Files Control files are a structured type whose data is accessed by specifying a file number, an element and a field. The default data types are shown in bold. Syntax Data Type Access R:. Depends on field Depends on field The following fields are allowed for each element. For the meaning of each field, refer to the PLC's documentation.
Allen-Bradley DF1 Driver Help 32 Micrologix 3-255 255 All SLC 3-255 255 PLC-5 3-999 1999 The maximum word location is one less when accessing as a 32 bit data type (Long, DWord or Long BCD). Examples Example Description N7:0 Word 0. N7/26 Bit 26. N12:4/15 Bit 15 word 4. N7:10 [8] 8 Element array starting at word 10. N15:0 [4] [5] 4 by 5 element array starting at word 0. Float Files To access Float files, specify a file number and an element. The default data types are shown in bold.
Allen-Bradley DF1 Driver Help 33 **Referencing this file as string data allows access to data at word boundaries like the programming software. The length can be up to 236 characters. If a string that is sent to the device is smaller in length than the length specified by the address, the driver null terminates the string before sending it down to the controller.
Allen-Bradley DF1 Driver Help PLC-5 34 3-999 999 Examples Example Description D9:0 Word 0. D27:10 [16] 16 Element array starting at word 10. D15:0 [4] [8] 32 Element array starting at word 0. Long Files To access Long files, specify a file number and a DWord. The default data types are shown in bold.
Allen-Bradley DF1 Driver Help 35 CM Boolean Read/Write OL Boolean Read/Write RG Boolean Read/Write SC Boolean Read/Write TF Boolean Read/Write DA Boolean Read/Write DB Boolean Read/Write UL Boolean Read/Write LL Boolean Read/Write SP Boolean Read/Write PV Boolean Read/Write DN Boolean Read/Write EN Boolean Read/Write Ranges PLC Model File Number Max Element Micrologix 3-255 255 All SLC NA NA PLC-5 * * *For more information, refer to PLC5 PID Files.
Allen-Bradley DF1 Driver Help 36 PVDB Real Read/Write DVDB Real Read/Write MAXI Real Read/Write MINI Real Read/Write TIE Real Read/Write FILE Word, Short Read/Write ELEM Word, Short Read/Write EN Boolean Read/Write CT Boolean Read/Write CL Boolean Read/Write PVT Boolean Read/Write DO Boolean Read/Write SWM Boolean Read/Write CA Boolean Read/Write MO Boolean Read/Write PE, Boolean Read/Write INI Boolean Read/Write SPOR Boolean Read/Write OLL Boolean R
Allen-Bradley DF1 Driver Help 37 NB Word, Short Read/Write TFT Word, Short Read/Write TFN Word, Short Read/Write ELE Word, Short Read/Write SEL Word, Short Read/Write TO Boolean Read/Write CO Boolean Read/Write EN Boolean Read/Write RN Boolean Read/Write EW Boolean Read/Write ER Boolean Read/Write DN Boolean Read/Write ST Boolean Read/Write BK Boolean Read/Write The following file numbers and maximum element are allowed for each model.
Allen-Bradley DF1 Driver Help 38 *For more information, refer to Micrologix Message Files. Examples Example Description MG14:0.RLEN Requested length field of MG 0 file 14. MG18:6.CO Continue bit of MG 6 file 18. Block Transfer Files Block transfer files are a structured type whose data is accessed by specifying a file number, an element and a field. The default data types are shown in bold. Syntax Data Type Access BT:.
Allen-Bradley DF1 Driver Help 39 OVF DWord, Long Read/Write UNF DWord, Long Read/Write PFN Word, Short Read Only ER Word, Short Read Only MOD Word, Short Read Only OMB Word, Short Read Only HPO Word, Short Read/Write LPO Word, Short Read/Write UIX Boolean Read Only UIP Boolean Read Only AS Boolean Read Only ED Boolean Read Only SP Boolean Read Only LPR Boolean Read Only HPR Boolean Read Only DIR Boolean Read Only CD Boolean Read Only CU Boolean Read Only
Allen-Bradley DF1 Driver Help 40 Element Field Data Type Access YR Word, Short Read/Write MON Word, Short Read/Write DAY Word, Short Read/Write HR Word, Short Read/Write MIN Word, Short Read/Write SEC Word, Short Read/Write DOW Word, Short Read/Write DS Boolean Read Only BL Boolean Read Only _SET (for block writes) Boolean Read/Write Ranges PLC Model File Number Max Element Micrologix N/A 254 All SLC N/A N/A PLC5 N/A N/A Examples Example Description RTC:0.
Allen-Bradley DF1 Driver Help 41 CS1: Short, Word, BCD, DWord, Long, LBCD Depends on and CS1:/ Boolean Depends on and CS1/bit Boolean Depends on and Ranges PLC Model File Number Max Element Micrologix N/A 254 All SLC N/A N/A PLC5 N/A N/A Examples Example Description CS1:0 Word 0 CS1:4/2 Bit 2 word 4 = MCP Note: For more information on CS1 words/bit meanings, refer to the Rockwell documentation.
Allen-Bradley DF1 Driver Help 42 Error Descriptions The following error/warning messages may be generated. Click on the link for a description of the message.
Allen-Bradley DF1 Driver Help 43 Address Validation Missing address Device address '
' contains a syntax error Address '' is out of range for the specified device or register Device address '' is not supported by model '' Data Type '' is not valid for device address '' Device address '' is Read Only Array size is out of range for address '' Array support is not available for the specified address: '' Missing address Error TypAllen-Bradley DF1 Driver Help 44 Solution: Modify the requested data type in the client application. Device address '
' is Read Only Error Type: Warning Possible Cause: A tag address that has been specified statically has a requested access mode that is not compatible with what the device supports for that address. Solution: Change the access mode in the client application.Allen-Bradley DF1 Driver Help 45 Fatal Possible Cause: The specified COM port could not be opened due an internal hardware or software problem on the target computer. Solution: Verify that the COM port is functional and may be accessed by other Windows applications. COMn is in use by another application Error Type: Fatal Possible Cause: The serial port assigned to a device is being used by another application. Solution: Verify that the correct port has been assigned to the channel.
Allen-Bradley DF1 Driver Help 46 Possible Cause: 1. The serial connection between the device and the Host PC is broken. 2. The communications parameters for the serial connection are incorrect. 3. The named device may have been assigned an incorrect Network ID. 4. The response from the device took longer to receive than the amount of time specified in the "Request Timeout" device setting. Solution: 1. Verify the cabling between the PC and the device. 2.
Allen-Bradley DF1 Driver Help 47 Unable to read function file '' on device ''. Device replied with an unexpected NAK. Check device link protocol Unable to read data starting at on device '' [Status=, Ext. Status=] Error Type: Serious Possible Cause: 1. Node cannot be found. 2. Duplicate node detected. Solution: Check the status and extended status codes that are being returned by the PLC. The codes are displayed in hexadecimal.
Allen-Bradley DF1 Driver Help 48 Unable to read function file on device '' [Status=, Ext. Status=< EXT. STS>]. Block deactivated Error Type: Serious Possible Cause: 1. The function file address requested in the block does not exist in the PLC. 2. Processor is in program mode. Solution: Check the status and extended status codes that are being returned by the PLC. The codes are displayed in hexadecimal. Note: This error message applies to remote node errors.
Allen-Bradley DF1 Driver Help 49 Serious Possible Cause: There is bad cabling connecting the devices causing noise and checksum errors. Solution: Inspect cabling between the Host PC and the device. Unable to read data starting at on device ''. Slave sink/source full Error Type: Serious Possible Cause: The slave device cannot accept anymore requests from the master. The client may be requesting data too fast.
Allen-Bradley DF1 Driver Help 50 Error writing to address '
' on device '' [Status=, Ext. Status=] Error Type: Serious Possible Cause: 1. Node cannot be found. 2. Duplicate node detected. 3. The address requested in the block does not exist in the PLC. 4. Processor is in program mode. Solution: Check the status and extended status codes that are being returned by the PLC. The codes are displayed in hexadecimal.Allen-Bradley DF1 Driver Help 51 Error writing to address '
' on device ''. Slave source empty Error Type: Serious Possible Cause: The slave device does not have a response prepared for the write request to address < address>. The slave repoll delay may be set to short. Solution: The driver will automatically poll and re-poll the slave in seek of a poll response. If this error occurs too often, increase the slave re-poll delay on the given channel.Allen-Bradley DF1 Driver Help 52 Unable to read function file on device ''. Memory map error Error Type: Serious Possible Cause: There was an error writing to memory on the server. Solution: If this error occurs frequently, contact Technical Support. Unable to read data starting at '' on device ''. Device replied with an unexpected NAK.
Allen-Bradley DF1 Driver Help 53 Index 1 15-Pin Module Connection 12 2 25-Pin Module Connection 12 A Address '
' is out of range for the specified device or register 43 Address Descriptions 21 Address Validation 42 Array size is out of range for address 44 Array support is not available for the specified address 44 ASCII Files 32 Avtron 11 B BCD 20 BCD Files 33 Binary Files 29 Block Transfer Files 38 Boolean 20 Byte 20 C Cable Connections 11 Channel 0 Communication Status FAllen-Bradley DF1 Driver Help 54 Char 20 Checksum 10 Checksum error occurred writing to address '
' on device '' 50 Communicating with RSLogix5000 Family Controllers 16 Communication Parameters 6 Communications error on '' [] 45 COMn does not exist 44 COMn is in use by another application 45 Control Files 31 Counter Files 30 D Data Type '' is not valid for device address '' 43 Data Types Description 20 Device '' is not respondingAllen-Bradley DF1 Driver Help 55 F Float 10, 20 Float Files 32 Framing 45 Full-Duplex 7 Full Duplex 7 Function File Block Writes 13 Function File Options 13 H Half-Duplex 7 Half Duplex Master 7 Help Contents 5 High Speed Counter File 38 I I/O Module Status File 41 Input Files 26 Integer Files 31 K KF2/KF3 Half Duplex Master 8 L LBCD 20 Link Protocols 7 Link Settings 6 Long 20 Long Files 34 www. kepware.
Allen-Bradley DF1 Driver Help 56 M Mask 45 Micrologix Addressing 21 Micrologix Message Files 36 Micrologix PID Files 34 Missing address 43 Modem Setup 10 O Output Files 23 Overrun 45 Overview 5 P Parity 45 PLC5 Addressing 22 PLC5 Message Files 37 PLC5 PID Files 35 Protocol Settings 10 R Radio Modem 6, 9 Real-Time Clock File (RTC) 39 S Serial Communications 44 Short 20 SLC 500 Modular I/O Selection Guide 14 SLC5/01 Addressing 21 www. kepware.
Allen-Bradley DF1 Driver Help 57 SLC5/02 Addressing 22 SLC5/03 Addressing 22 SLC5/04 22 SLC5/05 22 SLC500 Addressing (Fixed I/O processor) 21 SLC500 Connection 12 SLC500 Slot Configuration 14 Station Number 6 Status Files 28 String 20 String Files 33 Supported Devices 10 Supported Protocols 6 Swap PLC-5 Float Words 10 T Timer Files 30 U Unable to read data starting at '' on device ''. Device replied with an unexpected NAK.
Allen-Bradley DF1 Driver Help 58 Unable to read function file on device '' [Status= Ext. Status=] 47 Unable to read function file on device '' [Status= Ext. Status=]. Block deac 48 Unable to read function file on device ''. Checskum error 48 Unable to read function file on device ''. Device replied with a NAK 51 Unable to read function file