Manual Rockwell Protocolo Df1
Manual Rockwell Protocolo Df1
Manual Rockwell Protocolo Df1
Woodhead
Protocol manual
Allen-Bradley on DF1
applicom 3.7
a product of Woodhead Software & Electronics
albradf1.doc
Copyright 2003 Woodhead Software & Electronics. All rights reserved.
http://www.applicom-int.com
04/09/2003
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
albradf1.doc
04/09/2003
TM
TM
TM
Copyright 2003 Woodhead Software & Electronics. All rights reserved. applicom , Direct-Link , RJ-Lnxx , SST
trademarks of Woodhead Software & Electronics. Other product names are trademarks of their respective owners.
http://www.applicom-int.com
are registered
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
Table of contents
1.
- Functionality ................................................................................1
- Introduction ...........................................................................................................1
- Client functionality with Allen-Bradley Messaging ................................................3
- Server Functionality with Allen-Bradley Messaging..............................................6
2.
- Configuration ...............................................................................7
- Allen-Bradley DF1 => DH / DH+ / DH-485............................................................7
- Allen-Bradley DF1 => Console socket ................................................................12
3.
4.
5.
- Appendices ................................................................................24
- List of extra files for this protocol ........................................................................24
- Evolution / compatibility.......................................................................................24
6.
7.
8.
- Index ...........................................................................................30
Allen-Bradley on DF1
Table of contents
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
1.
- Functionality
- Introduction
The applicom product uses the Full-Duplex DF1 protocol to connect transparently:
To the DH and DH+ network via the Allen-Bradley interface module reference 1770-KF2
See chapter.Configuration example of the Allen-Bradley module reference 1770-KF2
To the DH-485 network via the Allen-Bradley interface module reference 1770-KF3.
See chapter.Configuration example of the Allen-Bradley module reference 1770-KF3
To the console socket of Allen-Bradley PLCs in direct link.
The applicom product therefore supports the most widespread Allen-Bradley PLCs, namely:
The PLC-5, Logix5550 familys and the SLC5/04 on DH+.
The PLCs SLC500, 5/01, 5/02 and 5/03 on DH-485.
The PLC-5, Logix5550, MicroLogix familys and the SLC5/03, 5/04 and 5/05 PLCs on the RS232
socket of the processor.
The channel, configured in Allen-Bradley protocol, offers the following functionalities:
Client to access PLCs.
Server, compatible PLC-5, SLC500 and 5/0x, with no previous configuration.
The frames supported are in the two modes CLIENT and SERVER:
PLC-5 / Logix5550 range: Typed Read , Typed Write , Word Range Read , Word
Range Write and Read Modify Write .
5/0x / MicroLogix range: Protected Typed Logical Read with Three Address Fields and
Protected Typed Logical Write with Three Address Fields
Remarks in the case of Logix5550 :
The variables in the PLC should be arranged in files of type PLC-5
The server functionality is not available.
Allen-Bradley on DF1
- Functionality
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
Several protocol configurations are allowed with the Allen-Bradley interface module and the
applicom card:
The formats: 110 to 19200 baud, with or without parity, 1 stop bit, 8 data bits.
The protocols: Full-Duplex BCC, Full-Duplex CRC, with or without included responses.
Allen-Bradley on DF1
- Functionality
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
applicom
Addressing
(Addr)
Exchange
type
(cyclic mode)
Corresponding
applicom Function
(library/DLL access)
READPACKBIT, READDIFBIT
WRITEPACKBIT, WRITEDIFPACKBIT
READWORD, READDIFWORD
WRITEWORD, WRITEDIFWORD
READDWORD, READDIFDWORD
WRITEDWORD, WRITEDIFDWORD
Tx:y/PRE
x * 16384 + w
Read bits
x * 16384 + y*16 + z Write bits
x * 16384 + y
Read words
Write words
x * 16384 + y
Read double words
*
Write double words
*
x * 16384 + y
Read floating words
Write floating words
16384*x + y
Cx:y/PRE
16384*x + y
READCOUNTER, WRITECOUNTER
Nx:y
Fx:y
READFWORD, READDIFFWORD
WRITEFWORD, WRITEDIFFWORD
READTIMER, WRITETIMER
w : N of bits (0 to 15999)
x : N of file ( 0 to 999 )
y : N of element in the file ( 0 to 999 )
z : N of sub-element ( 0 to 15 )
Input/Output variables for PLC-5 :
PLC variable
Item (DDE/OPC)
I:y/z
O:y/z
Addresses
(y * 16) + z
(y * 16) + z
I:y
O:y
y
y
Allen-Bradley on DF1
- Functionality
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
PLC variable
Item (DDE/OPC)
I:m.y/z
O:m.y/z
Addresses
(m * 512) + (y * 16) + z
(m * 512) + (y * 16) + z
I:m.y
O:m.y
(m * 512) + y
(m * 512) + y
REMARK:
Caution, the bit write functions are not part of Allen-Bradley specifications. To force one or more
bits, the applicom software reads a word in the binary file, masks and forces the user bits, then
writes the complete word in the equipment. This mechanism can lead to random effects if the
equipment has forced other bits of the word between the read and the write.
The counters and timers are only available with the applicom library.
The counters and timers are not available with the Logix5550 PLC.
Other applicom functions to ensure control of some modems (example: Hayes command
modem, etc.).
Exchange type
Message transmission
Allen-Bradley on DF1
- Functionality
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
2048
128
64 *
64
1
1792
128
64 *
64
1
2048
128
64 *
64
1
1
1*
1
2048
128
64 *
64
1792
128
64 *
64
Allen-Bradley on DF1
- Functionality
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
ALLEN-BRADLEY
addresses
B9:0
....
B9:255
B10:0
....
Read/Write bits
B10:255
....
B16:0
....
B16:255
N17:0
....
N17:255
N18:0
....
Read/Write words
N18:255
....
N144:0
....
N144:255
F145:0
....
F145:255
F146:0
....
Read/Write floating words* F146:255
....
F272:0
....
F272:255
Corresponding APPLICOM
addresses
0 to 15
....
4080 to 4095
4096 to 4111
....
8176 to 8191
....
28672 to 28687
....
32752 to 32767
0
....
255
256
....
511
....
32512
....
32767
0
....
255
256
....
511
....
32512
....
32767
APPLICOM
area
bit area
word area
word area
(F256 to F272 uniquely
with PLC-5)
Allen-Bradley on DF1
- Functionality
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
2.
- Configuration
Electrical interface :
The interface module type is determined by the reference of the module installed on the applicom
interface or on the galvanic isolation option (BX4010, BX4010R).
You have then the following options:
RS232 (2 signals) (3RS232*, 5RS232*, 6RS232)
RS232 (6 signals) (3RS232*, 5RS232*, 6RS232)
BC20 mA*
3RS485*
3RS485-4*
5RS485* or 6RS485
* : Not galvanically isolated. Isolation only ensured with option BX4010 and BX4010R.
Allen-Bradley on DF1
- Configuration
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
For the module compatibility, you can refer to the Wiring/Output module compatibility section of
hardware installation manual.
RS232 (2 signals)(3RS232*, 5RS232*, 6RS232)
Means that only the TxD and RxD signals are exploited by the protocol task installed on the
channel. RTS, DTR, CTS and DCD signals can be accessed from the application by using
the applicom library GETMODEM and SETMODEM functions.
RS232 (6 signals)(3RS232, 5RS232, 6RS232)
Means that the protocol task installed at the channel level manages the signals.
- TxD and RxD for data transmission and reception.
- RTS, an output signal positioned by the applicom interface before each transmission.
- CTS, an input signal, must be active to allow transmission.
- DCD, an input signal, must be active to validate reception.
You can position the DTR output signal from the applicative program by using the
applicom library SETMODEM function.
You can query the CTS and DCD input signal status from the application program by using
the applicom library GETMODEM function.
The 6RS232 module ensures the galvanic isolation.
BC20 mA
Conductive 20 mA current loop. The active or passive operation is determined by wiring. If
active, see "5BC20 module characteristics" in wiring section of the Hardware installation
manual. The active operation should only be used if BX4010 and BX4010R boxes are used.
3RS485
2-wire RS485 link. The line prepolarization as well as the load resistance are wiringselectable.
Caution: Wiring is different from modules 3RS485-4 and 5RS485.
3RS485-4
4-prepolarized wire RS422 / RS485 link. The load resistance is wiring-selectable.
5RS485 or 6RS485
2 or 4-prepolarized wire RS422 / RS485 link. Load resistances are wiring-selectable. In
addition, the 6RS485 module ensures the galvanic isolation. Your interface must be
equipped for this type of PROM module V3.0 or higher.
Baud rate :
You must select a transmission speed comprised between 50 and 38400 bauds, independently on
each channel. This speed must be consistent with that of the equipments connected on the channel.
Parity control :
Addition or not of a parity bit. You must select the type of parity check.
- None
- Odd
- Even
Control character :
Used to define the type of Error check control character. This choice must be identical to that
configured on the Allen-Bradley communication module reference 1770-KF2 or 1770-KF3.
Time out
Maximum time separating the start of request transmission by the applicom DF1 client from the
server's response. The Time out trips uniquely if the Allen-Bradley module (1770-KF2 or 1770-KF3) has
acknowledged the request. From this moment if the equipment takes a greater time to reply to you, the
current function will return status 55 Message lost.
By default this time is set to 3 seconds.
Allen-Bradley on DF1
- Configuration
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
Equipment configuration :
Equipment type Available:
This choice is used to select the type of remote equipment in order to use the
corresponding request format.
Absent:
Equipment not configured.
PLC-5 or Logix5550 :
Equipment interrogated with requests in PLC-5 format.
SLC or MicroLogix :
Equipment interrogated with requests in SLC format.
This dialog box is used to define up to 256 server equipments of applicom DF1 client.
Allen-Bradley on DF1
- Configuration
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
Switch 8:
Comm Standard
Allen-Bradley on DF1
10
- Configuration
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
Allen-Bradley on DF1
Parameter
Value
11
: 19 200
: No
: 19 200
: None
: Full-Duplex
: BCC
: Disable
: Enable
00
19
00
19
00
00
00
00
01
31
03
02
10
00
00
10
00
- Configuration
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
Electrical interface :
The interface module type is determined by the reference of the module installed on the applicom
interface or on the galvanic isolation option (BX4010, BX4010R).
You have then the following options:
RS232 (2 signals) (3RS232*, 5RS232*, 6RS232)
RS232 (6 signals) (3RS232*, 5RS232*, 6RS232)
BC20 mA*
3RS485*
3RS485-4*
5RS485* or 6RS485
* : Not galvanically isolated. Isolation only ensured with option BX4010 and BX4010R.
For the module compatibility, you can refer to the wiring section of hardware installation manual.
RS232 (2 signals)(3RS232*, 5RS232*, 6RS232)
Means that only the TxD and RxD signals are exploited by the protocol task installed on the
channel. RTS, DTR, CTS and DCD signals can be accessed from the application by using
the applicom library GETMODEM and SETMODEM functions.
Allen-Bradley on DF1
12
- Configuration
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
Baud rate :
You must select a transmission speed comprised between 50 and 38400 bauds (9600bds to 1.5
Megabits for PC1000PFB, 9600bds to 500Kbs for PC1500PFB), independently on each channel. This
speed must be consistent with that of the equipments connected on the channel.
Parity control :
Addition or not of a parity bit. You must select the type of parity check.
- None
- Odd
- Even
Control character :
Used to define the type of Error check control character. This choice must be identical to that
configured on the remote PLC.
Time out :
Maximum time separating the start of request transmission by the applicom DF1 client from the
server's response. The Time out trips uniquely if the remote PLC has acknowledged the request. From
this moment if the equipment takes a greater time to reply to you, the current function will return status 55
Message lost.
By default this time is set to 3 seconds.
Equipment type :
None : Equipment not configured.
PLC-5
SLC
Logix5550
MicroLogix
Allen-Bradley on DF1
13
- Configuration
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
3.
- Wait mode
readpackibit
readpackqbit
readpackbit
readiword
readqword
readword
readdword
readfword
readtimer
readcounter
getmodem
writepackqbit
writepackbit
writeqword
writeword
writedword
writefword
writetimer
writecounter
writemes
setmodem
- Deferred mode
readdifibit
readdifqbit
readdifbit
readdifiword
readdifqword
readdifword
readdifdword
readdiffword
testtransdif
Allen-Bradley on DF1
Allen-Bradley channel
writedifpackqbit
writedifpackbit
writedifqword
writedifword
writedifdword
writediffword
writedifmes
transdif
transdifpack
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
- Cyclic mode
createcyc
startcyc
transcyc
stopcyc
transcycpack
actcyc
Allen-Bradley on DF1
Allen-Bradley channel
Function type
Reading Writing
X
X
X
X
X
X
X
X
X
X
X
X
X
X
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
4.
- Presentation
The "item of image variables" are the syntaxes which allow to access to the variables through the
DDE server "pcdde" or the OPC server.
Report you to sections "DDE server/Principles regarding access to Data" or "OPC server/Data
Access Principle".
According to the configuration of the equipment, the descriptor is determined by default by the
server. In case of Allen-Bradley DF1 protocol, the default descriptor is Allen-Bradley descriptor.
You however have the possibility of using another descriptor (in particular the applicom standard
descriptor) by the means of the advanced options.
Allen-Bradley on DF1
16
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
- Standard descriptor
The standard descriptor can be used for access to the equipments which have not specific
descriptors. The address field of the item name may be 10 digits long. It allows to compose a linear
address from 0 to 4 giga.
Single Mode
Bits
Bx
Bx_n, Bx_n_l
Words
Wx
Wx_n, Wx_n_l
Wx.b
Bits in word
M_Wx_n
Dx
Dx_n, Dx_n_l
Floating words
Fx
Fx_n, Fx_n_l
Note : Limit values for n and l parameters are depending on the protocol. However, in case of
PCDDE, limits cannot never be superior than 128 for bits and bytes, 64 for words, 32 for double words
and floating words.
For more information on the limits in read and write, see :
Maximum number of variables per frame with PCDDE on page 5
Maximum number of variables per frame with OPC server on page 5
For variable addressing, refer to the chapter - Client functionality with Allen-Bradley Messaging on
page 3.
Allen-Bradley on DF1
17
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
Allen-Bradley on DF1
18
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
Allen-Bradley on DF1
19
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
- Allen-Bradley descriptor
This descriptor is usable only for access to the ALLEN-BRADLEY PLCs through the applicom
interfaces with DF1 protocol.
This descriptor is the default descriptor determined by the OPC and DDE server.
Single Mode
Input bits
I :y/z
I :y/z_n, I :y/z_n_l
Output bits
O :y/z
O :y/z_n, O :y/z_n_l
Bx/w or Bx:y/z
Input words
I :y
I :y_n, I :y_n_l
Output words
O :y
O :y_n, O :y_n_l
Words
Nx:y
Nx:y_n, Nx:y_n_l
Bits
Bits in word
Nx:y.b or Nx:y/b
M_Nx:y_n
Dx:y
Dx:y_n, Dx:y_n_l
Floating words
Fx:y
Fx:y_n, Fx:y_n_l
Note: Limit values for n and l parameters are depending on the protocol. However, in case of
PCDDE, limits cannot never be superior than 128 for bits and bytes, 64 for words, 32 for double words
and floating words.
For more information on the limits in read and write, see :
Maximum number of variables per frame with PCDDE on page 5
Maximum number of variables per frame with OPC server on page 5
For variable addressing, refer to the chapter - Client functionality with Allen-Bradley Messaging on
page 3.
Allen-Bradley on DF1
20
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
Allen-Bradley on DF1
21
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
- ASCII string in the words => M_Nx:y_n (16 bits WORD type)
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
x : File number (0 to 999).
y : Number of first word which contains the string (0 to 999).
n : Number of potential words which can contain the ASCII string (1 to 65).
Example : M_N100:10_30
In example, the words array N100:10 to N100:39 can contain the string.
Allen-Bradley on DF1
22
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
Allen-Bradley on DF1
23
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
5.
- Appendices
- Evolution / compatibility
This protocol necessitates on applicom interfaces a version EPROM minimum V3.6.
From version V3.3 :
Management of variables :
Input bits (I :y/z), output bits (O :y/z)
Input words (I :y), output words (O :y)
From version V3.4 :
Logix5550 and MicroLogix are supported.
Allen-Bradley on DF1
24
- Appendices
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
Allen-Bradley on DF1
25
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
The TRANSCYC (or TRANSCYCPACK) function is used with a cyclic function number that is no longer
activated.
-5
The user program tries to perform a TRANSDIF (or TRANSDIFPACK) deferred transfer although the deferred
request in progress is not completed.
-1
TRANSDIF (or TRANSDIFPACK) deferred transfer request related to a write that took place correctly.
Unknown function.
The requested function is not supported.
Incorrect address.
The address of the variable you are soliciting is incorrect.
Incorrect data.
Further details :
Function: BINBCD, BCDBIN.
- At least one of the accessed values is not in BCD format (0 value 9999).
Irretrievable data.
32
35
40
Deferred read or write attempt when the deferred request register is full.
Another task must free the resources by making an exitbus
41
Deferred read or write attempt when the deferred request register is full
Perform deferred request transfers with TRANSDIF (or TRANSDIFPACK) in order to release the register (64
positions).
42
Deferred request transfer attempt with TRANSDIF (or TRANSDIFPACK) when the latter is empty (no deferred
requests in progress).
45
46
Board number not configured, or Master/client applicom function aiming at a channel configured as
slave/server, or vice versa.
47
No applicom interface.
51
59
66
255
Used by the PCDDE MS-Windows server. Initial value of STATUS_READ and STATUS_WRITE .
This value indicates that no transaction has been made between PCDDE and applicom interface.
Comments :
Negative status are information codes.
Allen-Bradley on DF1
26
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
Unknown function.
The requested function is not supported.
Incorrect address.
The address of the variable you are soliciting is incorrect.
Incorrect data.
Inconsistent frame content.
32
33
34
36
43
48
The applicom interface RS232 channel configured as "6 signals" cannot transmit since it waited for the
Modem CTS for more than 3 seconds during a transmission.
53
54
Physical problem.
55
56
Allen-Bradley on DF1
27
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
7. - Glossary of terms
baud
Bit per second
BCC
Block Check character
BX4010
4 channels distribution box, with galvanic insulation.
BX4010R
4 channels rack distribution box, with galvanic insulation.
channel
Physical output of an applicom card.
CRC
Cyclic Redundancy Check
CTS
Clear To Send
DCD
Data Carrier Detect
DF1
A peer-to-peer link-layer protocol that combines features of ANSI X3.28-1976 specification
subcategorize D1 (data transparency) and F1 (two-way simultaneous transmission with embedded
responses).
DH
Data Highway
DTR
Data Terminal Ready
Full-Duplex
emission and reception in the same time.
applicom interface
Communication card, ISA or PCI type, with the applicom real time multi-task kernel.
item
Defines an element
OPC
Ole for Process Control
PCDDE
applicom DDE server.
EPROM
Allen-Bradley on DF1
28
- Glossary of terms
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
RTS
Request To Send
RxD
Recept signal.
TxD
Transmit signal.
Allen-Bradley on DF1
29
- Glossary of terms
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
8. - Index
1770KF2, 1
1770KF3, 1
Adressing, 3
BCC, 1
Configuration -> Console socket
baud rate, 13
control character, 13
electrical interface, 13
equipment type, 13
parity control, 13
time-out, 13
Configuration -> DH /DH+ /DH-485
1770KF2, 8
1770KF3, 8
Baud rate, 8
Control caracter, 8
DF1, 8
DH, 8
DH+, 8
DH485, 8
Electrical interface, 8
equipment type, 8
Parity control, 8
time-out, 8
CRC, 1
Data base, 7
DF1, 1
DH+, 1
DH485, 1
EPROM, 24
Error, 25
Full Duplex, 1
functions usable
cyclic mode, 15
deferred mode, 15
wait mode, 15
Item
Allen Bradley descriptor, 20
standard Descriptor, 18
Item descriptor
Allen Bradley descriptor, 20
standard descriptor, 18
Limits
library, 5
OPC, 5
PCDDE, 5
Logix5550, 1
Maximum number of variables per frame
library, 5
OPC, 5
PCDDE, 5
Messages sending, 3
Allen-Bradley on DF1
30
- Index
electrical & safety industrial connectivty software & electronics advanced connectivity
Woodhead
MicroLogix, 1
PLC5, 1
server function, 7
SLC500, 1
Status, 25
supported frames, 1
Supported variables, 3
Allen-Bradley on DF1
31
- Index