AS511 Master: Woodhead Woodhead
AS511 Master: Woodhead Woodhead
Woodhead
Protocol manual
AS511 Master
applicom® 3.8
AS511.doc 06/05/2004
Woodhead
AS511.doc 06/05/2004
® TM TM TM
Copyright © 2004 Woodhead Software & Electronics. All rights reserved. applicom , Direct-Link , RJ-Lnxx , SST are registered
trademarks of Woodhead Software & Electronics. Other product names are trademarks of their respective owners.
http://www.applicom-int.com
electrical & safety · industrial connectivty · software & electronics · advanced connectivity
Woodhead
Table of contents
1. - Generalities ..................................................................................1
2. - Functionality ................................................................................2
- Access to variables ...............................................................................................2
- Maximum number of variables per frame with the library .....................................3
- Maximum number of variables per frame with PCDDE ........................................3
- Maximum number of variables per frame with OPC server ..................................4
3. - Configuration ...............................................................................5
6. - Appendices ................................................................................33
- List of complementary files for AS511 Master: ...................................................33
- Evolution / compatibility.......................................................................................33
9. - Index ...........................................................................................38
Woodhead
1. - Generalities
AS511 is a console connector protocol in point to point, half-duplex and master-slave. The
AS511 master protocol on applicom® interface is used to manage Siemens S5 PLCs:
• 95 U
• 115 U (CPU 943, 943 B)
• 155 U (CPU 948).
• 135 U (CPU 928, 928B)
CUSTOMER
APPLICATION
applicom®
Layer 7
Application Protocol AS 511
Layer 6
Presentation
Layer 5
Session
Layer 4
Transport
Layer 3
Network
Layer 2
Link Master Management
CL 20mA - Half Duplex.
Layer 1 9600 bauds, 8 bits, 2 stop bits, even parity
Physical
Serial Link, Asynchronous transmission
Woodhead
2. - Functionality
Access to variables
The functions managed by choosing an AS511 channel provide access to variables defined in the
following table.
The address of the variable accessed must be calculated by referring to the " applicom® Addressing"
column in the table.
v : Byte No.
w : No. of bit in byte (0 to 7)
x : DB (1 to 255) or DX No. (0 to 255)
y : No. of word in DB or in DX (0 to 255)
z : No. of bit in word (0 to 15)
n : Timer or counter No (0 to 255)
The access to the functions of the applicom.dll library is not supported by the SW1000SER solution.
Woodhead
NOTE :
CAUTION! The AS511 protocol can only write bits with 16 bits words (case of DB and DX) or with 8
bits bytes (case of memo, inputs and outputs). If the first bit address and bit number is not 16 multiple
(case of DB and DX) or 8 multiple (case of memo, inputs and outputs), the applicom® software read
words or bytes containing the bits to write in API, hide and force the user bits, then write words or bytes in
the equipment as a whole.
This machinery can induce risks if the equipment has forced others bits of the word or of the byte
between the reading and the writing.
To find the model and CPU of the PLC connected to applicom® channel, use the applicom®
function "readident".
CAUTION! The applicom® environment must read the configuration of the PLC connected on this
channel before being operational. Do make sure to use the "AppConnect" function or reinitialize the
applicom® environment each time the PLC is changed to "force" this read.
The counters and timers are only available with the applicom® library.
Remark : the access to the functions «readident » and « AppConnect » of the applicom.dll library is
not supported by the SW1000SER solution. You have to reset the applicom® environment when you
change of PLC in order to force the reading of the configuration.
The number given for read frames corresponds to the maximum number of points (as imposed by
the server and/or the protocol) which can be grouped together during dynamic optimization of the frames
carried out by the server. However, this number can be reduced to suit a specific item of equipment by
configuring the length of frames in the topic (see chapter "Implementation/Topics configuration/Advanced
options").
Where write operations are concerned, a variable automatically entails the formation of a frame.
Woodhead
The number given for read frames corresponds to the maximum number of points (as imposed by
the server and/or the protocol) which can be grouped together during dynamic optimization of the frames
carried out by the server. However, this number can be reduced to suit a specific item of equipment by
configuring the length of frames in the topic (see chapter "Implementation/Topics configuration/Advanced
options").
For the write frames, see chapter "OPC Server/Optimization of synchronous and asynchronous
requests".
Woodhead
3. - Configuration
Woodhead
Interface module
The type of interface module is determined by the reference of the module installed on the
applicom® interface, or on the galvanic insulation option (BX4010, BX4010R).
*: Not galvanically insulated. Insulation provided only with options BX4010 and BX4010R.
For the module compatibility, you can refer to the Wiring/Output module compatibility section of
« hardware installation » manual.
Woodhead
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
RS485 2 wire link. Line prepolarization as well as load resistance are selected by wiring.
Caution: The wiring differs from modules 3RS485-4 and 5RS485.
3RS485-4RS422 / RS485 4 wire prepolarized link. The load resistance is selected by wiring.
5RS485 or 6RS485
RS422 / RS485 2 or 4 wire prepolarized link. The load resistances are selected by wiring.
The 6RS485 module also provides galvanic insulation. Your interface must be equipped for
this type of module with PROM V3.0 or higher.
The serial port number corresponds to the COM port that will be used on the machine by the
SW1000SER interface for the selected protocol.
The list includes the COM ports defined in the system.
Flow control:
Flow control defines the communication signals used by the device or by a current loop converter
(BC20mA), RS485, RS422.
None
No flow control.
DTR On
The DTR signal is raised during serial port opening and remains constantly raised.
RTS
The RTS signal is raised if there are bytes to transmit. It is dropped when all the emission buffer
bytes have been emitted.
RTS, DTR On
Combination of the DTR and RTS modes described above.
RTS On
The RTS signal is raised during serial port opening and remains constantly raised.
For more details about using a converter, see chapter "Use of RS232/RS485, RS422 and Current
Loop Converters" in the Software Solution Functions manual.
The turnaround represents the wait time of a response to a request. This value, normally at 20 ms,
can be increased during malfunction (Status 53). Especially when dialoging with a PLC which has a long
cycle time (CPU overloaded).
Woodhead
- wait mode
- Standard functions
Readpackbit writepackbit
readpackibit
readpackqbit writepackqbit
readbyte writebyte
readibyte
readqbyte writeqbyte
readpackbyte writepackbyte
readpackibyte
readpackqbyte writepackqbyte
readword writeword
readiword
readqword writeqword
readdword writedword
readfword writefword
readtimer
readcounter
readident
AppConnect AppUnconnect
manual automatic
- Specific functions
iocounter resetiocounter
Woodhead
- Deferred mode
readdifbit writedifpackbit
readdifibit
readdifqbit writedifpackqbit
readdifbyte writedifpackbyte
readdifibyte
readdifqbyte writedifpackqbyte
readdifword writedifword
readdifiword
readdifqword
readdifdword writedifdword
readdiffword writediffword
- Cyclic mode
createcyc
startcyc stopcyc actcyc
transcyc transcycpack
Packed bytes X X
Bytes X X
Packed input bytes X
Input bytes X
Packed output bytes X X
Output bytes X X
Words X X
BCD words
Input words X
Output words X X
Woodhead
- 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 AS511 protocol, the default descriptor is Siemens Simatic S5 descriptor (German and
French syntax and English syntax).
Caution, if you change the default descriptor, certain optimizations of access to the equipment will
be devalidated and the performances could be modified.
You however have the possibility of using another descriptor (in particular the applicom® standard
descriptor) by the means of the advanced options.
Woodhead
- Standard descriptor
The standard descriptor can be used to access all equipment which does not have a specific
descriptor. The address field in the « item » name can go up to 10 digits. A linear address can therefore
be composed ranging from 0 to 4 giga.
Remark: 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.
Woodhead
- Internal bits => Bx (type: BIT)
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples: B4_10, B4_10_5
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples Bl4_10, Bl4_10_5
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples: BO4_10, BO4_10_5
n: Number of bytes.
l: Number of bytes per line (Matrix mode only).
Examples: O4_10, O4_10_5
Woodhead
n: Number of bytes.
l: Number of bytes per line (Matrix mode only).
Examples: OI4_10, OI4_10_5
n: Number of bytes.
l: Number of bytes per line (Matrix mode only).
Examples: OO4_10, OO4_10_5
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
In the example, the byte array O100 to O129 can contain the string.
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples: W4_10, W4_10_5
Woodhead
- Input words => WIx (type: 16 bit WORD)
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples: WI4_10, WI4_10_5
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples: WO4_10, WO4_10_5
- ASCII string in the internal words => M_Wx_n (type: 16 bit WORD)
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
In the example, the word array W100 to W129 can contain the string.
Woodhead
Woodhead
- Siemens PLC descriptor German (D) and French syntax
The Siemens PLC descriptor can only be used when accessing Siemens PLC via the console
connector under AS511 protocol:
The Siemens Simatic S5 descriptor is the default descriptor determined by the OPC and DDE
server.
Caution:
When accessing words in the markers, input words and output words, these words are accessed in
a byte zone, word 1 being composed of bytes 1 and 2, word 2 of bytes 2 and 3, etc. The words therefore
overlap.
When accessing double words and floating words in the markers, these variables are accessed in a
byte zone, double word 1 being composed of bytes 1, 2, 3 and 4, double word 2 of bytes 2, 3, 4 and 5,
etc. The variables therefore overlap.
Woodhead
Remark: 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.
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples: M94.7_24 or M94:7_24, M94.7_24_8 or M94:7_24_8
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples: E94.7_24 or E94:7_24, E94.7_24_8 or E94:7_24_8
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples: A94.7_24 or A94:7_24, A94.7_24_8 or A94:7_24_8
Woodhead
x: DX number (1 to 255).
y: Number of the first word in the DB (0 to 255).
z: Rank of the first bit (0 to 15).
Example: DB94D10.7 or DB94D10:7
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples: DB94D10.7_24 or DB94D10:7_24, DB2D3.7_24_8 or DB2D3:7_24_8
x: DX number (0 to 255).
y: Number of the first word in the DX (0 to 255).
z: Rank of the first bit (0 to 15).
Example: DX94D10.7 or DX94D10:7
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples: DX94D10.7_24 or DX94D10:7_24, DX2D3.7_24_8 or DX2D3:7_24_8
n: Number of bytes.
l: Number of bytes per line (Matrix mode only).
Examples: MB4_10, MB4_10_5
Woodhead
n: Number of bytes.
l: Number of bytes per line (Matrix mode only)
Examples: EB4_10, EB4_10_5
n: Number of bytes.
l: Number of bytes per line (Matrix mode only)
Examples: AB4_10, AB4_10_5
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
In the example the byte array MB100 to MB109 can contain the string.
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples: MW4_10, MW4_10_5
Woodhead
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples: EW4_10, EW4_10_5
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples: AW4_10, AW4_10_5
x: DB number (1 to 255).
y: Number of the first word in the DB (0 to 255).
Example: DB4DW8
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples: DB4DW8_10, DB4DW8_10_5
x: DX number (0 to 255).
y: Number of the first word in the DX (0 to 255).
Example: DX4DW8
n: Number of words.
l: Number of words per line (Matrix mode only)
Examples: DX4DW8_10, DX4DW8_10_5
x: DB number (1 to 255).
y: Number of the word in the DB (0 to 255).
Example: DB4DR5
Woodhead
For this syntax, the maximum numbers of variables per frame are:
- in read: 128*2
- in write: 1
x: DB number (1 to 255).
y: Number of the word in the DB (0 to 255).
Example: DB4DL5
For this syntax, the maximum numbers of variables per frame are:
- in read: 128*2
- in write: 1
x: DX number (0 to 255).
y: Number of the word in the DX (0 to 255).
Example: DX4DR5
For this syntax, the maximum numbers of variables per frame are:
- in read: 128*2
- in write: 1
x: DX number (0 to 255).
y: Number of the word in the DX (0 to 255).
Example: DX4DL5
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
x: DB number (1 to 255).
y: Number of the first word in the DB containing the string (0 to 255).
n: Number of potential words that could contain the ASCII string (1 to 65).
Example: M_DB4DW0_10
In the example the word array DB4DW0 to DB4DW9 can contain the string.
Woodhead
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
x: DX number (0 to 255).
y: Number of the first word in the DX containing the string (0 to 255).
n: Number of potential words that could contain the ASCII string (1 to 65).
Example: M_DX4DW0_10
In the example the word array DX4DW0 to DX4DW9 can contain the string.
- Double words in the marker bytes => MDx (type: 32 bit WORD)
- Floating words in the marker bytes => MDxKG (type: 32 bit IEEE
REAL)
x: DB number (1 to 255).
y: Number of the first word DW in the DB (0 to 254).
Example: DB4DD8
Woodhead
x: DX number (0 to 255).
y: Number of the first word DW in the DX (0 to 254).
Example: DX4DD8
x: DB number (1 to 255).
y: Number of the first word DW in the DB (0 to 254).
KG: Suffix used to convert a word into KG format of Siemens PLCs to IEEE format.
Example: DB4DD8KG
x: DX number (0 to 255).
y: Number of the first word DW in the DX (0 to 254).
KG: Suffix used to convert a word into KG format of Siemens PLCs to IEEE format.
Example: DX4DD8KG
n: Number of timers.
l: Number of timers per line (Matrix mode only).
Examples : TB4_10, TB4_10_5
Woodhead
- Counters => ZBx (type: 16 bit WORD)
n: Number of counters.
l: Number of counters per line (Matrix mode only).
Examples : ZB4_10, ZB4_10_5
Woodhead
- Siemens PLC descriptor, English (GB) syntax
The Siemens PLC descriptor can only be used when accessing Siemens PLC via the console
connector under AS511 protocol:
The Siemens Simatic S5 descriptor is the default descriptor determined by the OPC and DDE
server.
Caution:
When accessing words in the markers, input words and output words, these words are accessed in
a byte zone, word 1 being composed of bytes 1 and 2, word 2 of bytes 2 and 3, etc. The words therefore
overlap.
When accessing double words and floating words in the markets, these variables are accessed in a
byte zone, double word 1 being composed of bytes 1, 2, 3 and 4, double word 2 of bytes 2, 3, 4 and 5,
etc. The variables therefore overlap.
Woodhead
Remark: 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.
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples: F94.7_24 or F94:7_24, F94.7_24_8 or F94:7_24_8
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples: I94.7_24 or I94:7_24, I94.7_24_8 or I94:7_24_8
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples: Q94.7_24 or Q94:7_24, Q94.7_24_8 or Q94:7_24_8
Woodhead
x: DB number (1 to 255).
y: Number of the first word in the DB (0 to 255).
z: Rank of the first bit (0 to 15).
Example: DB94D10.7 or DB94D10:7
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples: DB94D10.7_24 or DB94D10:7_24, DB2D3.7_24_8 or DB2D3:7_24_8
x: DX number (0 to 255).
y: Number of the first word in the DX (0 to 255).
z : Rank of the first bit (0 to 15).
Example: DX94D10.7 or DX94D10:7
n: Number of bits.
l: Number of bits per line (Matrix mode only).
Examples: DX94D10.7_24 or DX94D10:7_24, DX2D3.7_24_8 or DX2D3:7_24_8
n: Number of bytes.
l: Number of bytes per line (Matrix mode only).
Examples: FY4_10, FY4_10_5
Woodhead
n: Number of bytes.
l: Number of bytes per line (Matrix mode only).
Examples: IB4_10, IB4_10_5
n: Number of bytes.
l: Number of bytes per line (Matrix mode only).
Examples: QY4_10, QY4_10_5
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
In the example the byte array MB100 to MB109 can contain the string.
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples: FW4_10, FW4_10_5
Woodhead
n: Number of words.
l: Number of words per line (Matrix mode only)
Examples: IW4_10, IW4_10_5
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples: QW4_10, QW4_10_5
x: DB number (1 to 255).
y: Number of the first word in the DB (0 to 255).
Example: DB4DW8
n: Number of words.
l: Number of words per line (2 to 64)
Examples: DB4DW8_10, DB4DW8_10_5
x: DX number (0 to 255).
y: Number of the first word in the DX (0 to 255).
Example: DX4DW8
n: Number of words.
l: Number of words per line (Matrix mode only).
Examples: DX4DW8_10, DX4DW8_10_5
Woodhead
For this syntax, the maximum numbers of variables per frame are:
- in read: 128*2
- in write: 1
x: DB number (1 to 255).
y: Number of the word in the DB (0 to 255).
Example: DB4DR5
For this syntax, the maximum numbers of variables per frame are:
- in read: 128*2
- in write: 1
x: DB number (1 to 255).
y: Number of the word in the DB (0 to 255).
Example: DB4DL5
For this syntax, the maximum numbers of variables per frame are:
- in read: 128*2
- in write: 1
x: DX number (0 to 255).
y: Number of the word in the DX (0 to 255).
Example: DX4DR5
For this syntax, the maximum numbers of variables per frame are:
- in read: 128*2
- in write: 1
x: DX number (0 to 255).
y: Number of the word in the DX (0 to 255).
Example: DX4DL5
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
x: DB number (1 to 255).
y: Number of the first word in the DB containing the string (0 to 255).
n: Number of potential words that could contain the ASCII string (1 to 65).
Example: M_DB4DW0_10
In the example the word array DB4DW0 to DB4DW9 can contain the string.
Woodhead
For more information on the use of the ASCII string, you can consult the chapter "Use of message
mode".
x: DX number (0 to 255).
y: Number of the first word in the DX containing the string (0 to 255).
n: Number of potential words that could contain the ASCII string (1 to 65).
Example: M_DX4DW0_10
In the example the word array DX4DW0 to DX4DW9 can contain the string.
- Double words in the marker bytes => FDx (type: 32 bit WORD)
- Floating words in the marker bytes => FDxKG (type: 32 bit IEEE
REAL)
x: DX number (0 to 255).
y: Number of the first word DW in the DX (0 to 254).
Example: DX4DD8
Woodhead
x: DB number (1 to 255).
y: Number of the first word DW in the DB (0 to 254).
KG: Suffix used to convert a word in KG format of Siemens PLCs to IEEE format.
Example: DB4DD8KG
x: DX number (0 to 255).
y: Number of the first word DW in the DX (0 to 254).
KG: Suffix used to convert a word in KG format of Siemens PLCs to IEEE format.
Example: DX4DD8KG
n: Number of timers.
l: Number of timers per line (Matrix mode only).
Examples : TB4_10, TB4_10_5
n: Number of counters.
l: Number of counters per line (Matrix mode only).
Examples : ZB4_10, ZB4_10_5
Woodhead
6. - Appendices
- Evolution / compatibility
Woodhead
- Introduction
The various applicom® functions return a status word to:
- Guarantee the quality of the request.
- Diagnose the cause of a failure.
The meaning of the status word value is detailed in the following tables. In addition to the general
meaning, "Further information" allows you to direct your diagnosis according to the protocol used.
Woodhead
Woodhead
- Statuses linked to the protocol
0 No anomaly detected. The function was carried out correctly.
1 Unknown function
The function requested is not supported.
2 Incorrect address.
The address of the variable you are requesting is incorrect.
3 Incorrect data.
Frame content incoherent.
Reduce the turnaround time of the device in the channel configuration.
4 Inaccessible data.
The PLC refuses the connection.
Switching to RUN or STOP modes impossible (with some PLC this error can happen even though the switching to
a mode to another mode is correct).
32 Bad parameter passed into the function.
Number of variables incorrect.
33 Time-Out fault.
Check the wiring and configuration of the channel and the slave.
34 Parity fault in reception.
36 Equipment not configured.
The PLC CPU is not recognized.
48 Supported only by the applicom® interface
The RS232 channel of the applicom® interface configured in "6 signals" cannot emit since it waited for the
Modem CTS signal for more than 3 seconds during an emission.
53 Synchronization problem on the line.
Increase the turnaround time of the device in the channel configuration.
56 NACK from the equipment.
The DB or DX does not exist.
65 Connection refused by the equipment.
Bad read of the system parameters.
Remarks:
Negative status are information codes.
Woodhead
8. - Glossary of terms
applicom® interface
Communication card, ISA or PCI type, with the applicom® real time multi-task kernel.(PC1000,
PC2000, PC4000, PC1500PFB, ...)
BX4010
4 channels distribution box, with galvanic insulation.
BX4010R
4 channels rack distribution box, with galvanic insulation.
channel
Physical output of an applicom® card.
CTS
Clear To Send
DB
Siemens word to describe a Data bloc
DCD
Data Carrier Detect
DTR
Data Terminal Ready
half-duplex
emission and reception in the same time.
item
Defines an element or a unitary article
marker
Always present internal memory
OPC
Ole for Process Control.
PCDDE
applicom® DDE server.
RTS
Request To Send
RxD
Recept signal
TxD
Transmit signal.
Woodhead
9. - Index
Addressing, 2
Configuration
interface module, 6
CPU validation, 1
EPROM, 45
Error, 46
functions usable
cyclic mode, 11
deferred mode, 9
wait mode, 9
Item
Siemens PLC descriptor German (D) and French syntax, 19
Siemens PLC descriptor, English (GB) syntax, 32
standard descriptor, 13
Item descriptor
Siemens PLC descriptor German (D) and French syntax, 19
Siemens PLC descriptor, English (GB) syntax, 32
standard descriptor, 13
Limits
library, 4
OPC, 5
PCDDE, 4
Maximum number of variables per frame
library, 4
OPC, 5
PCDDE, 4
Principle, 1
Siemens PLC, 1
Status, 46
Supported variables, 2