Professional Documents
Culture Documents
AS511 Master
applicom®
1. Generalities ....................................................................................4
2. Functionality ..................................................................................5
Access to variables .................................................................................................5
Maximum number of variables per frame with the library .......................................6
Maximum number of variables per frame with PCDDE ..........................................6
Maximum number of variables per frame with OPC server ....................................7
3. Configuration .................................................................................8
AS511 master properties with the applicom® interface: .........................................8
6. Appendices ..................................................................................23
List of complementary files for AS511 Master: .....................................................23
Evolution / compatibility.........................................................................................23
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)
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.
Siemens PLC applicom® Addressing Exchange type (cyclic Corresponding applicom® function
Variable (addr) mode) (library/DLL access)
Mv.w v*8+w Read bits READPACKBIT, READDIFBIT
DBxDy.z x*4096+y*16+z Write bits WRITEPACKBIT, WRITEDIFPACKBIT
DXxDy.z x*4096+y*16+z +1048576
MBv v Read bytes READBYTE
Write bytes WRITEBYTE
MBv v Read packed bytes READPACKBYTE, READDIFBYTE
Write packed bytes WRITEPACKBYTE,
WRITEDIFPACKBYTE
MWv v Read words READWORD, READDIFWORD
DBxDWy x*256+y Write words WRITEWORD, WRITEDIFWORD
DXxDWy x*256+y + 65536
MDv v Read double words READDWORD, READDIFDWORD
DBxDDy x*256+y Write double words WRITEDWORD, WRITEDIFDWORD
DXxDDy x*256+y + 65536
MDvKG v Read floating words READFWORD, READDIFFWORD
DBxDDyKG x*256+y Write floating words WRITEFWORD, WRITEDIFFWORD
DXxDDyKG x*256+y + 65536
Ev,w v*8+w Read input bits READPACKIBIT, READDIFIBIT
EBv v Read input bytes READIBYTE
EBv v Read packed input bytes READPACKIBYTE, READDIFIBYTE
EWv v Read input words READIWORD, READDIFIWORD
Av.w v*8+w Read output bits READPACKQBIT, READDIFQBIT
Write output bits WRITEPACKQBIT,
WRITEDIFPACKQBIT
ABv v Read output bytes READQBYTE, READDIFQBYTE
Write output bytes WRITEQBYTE
ABv v Read packed output bytes READPACKQBYTE, READDIFQBYTE
Write packed output bytes WRITEPACKQBYTE,
WRITEDIFPACKQBYTE
AWv v Read output words READQWORD, READDIFQWORD
Write output words WRITEQWORD, WRITEDIFQWORD
TBn n Read timers READTIMER
ZBn n Read counters READCOUNTER
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: 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.
Where write operations are concerned, a variable automatically entails the formation of a frame.
See also:
¾ In the documentation:
9 Implementation: Topic 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 also:
¾ In the documentation:
9 Implementation: Topic configuration
9 Software interfaces: OPC Server: Optimization of synchronous and asynchronous
requests
Parameters Description
Electrical Interface 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).
See also:
¾ In the documentation:
9 Hardware installation: Wiring: Output module compatibility
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
Deferred mode
readdifbit writedifpackbit
readdifibit
readdifqbit writedifpackqbit
readdifbyte writedifpackbyte
readdifibyte
readdifqbyte writedifpackqbyte
readdifword writedifword
readdifiword
readdifqword
readdifdword writedifdword
readdiffword writediffword
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
Presentation
The “items of image variables” are the syntaxes which allow to access to the variables through the
DDE server “pcdde” or the OPC server.
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.
See also:
¾ In the documentation:
9 Software Interfaces: DDE / SuiteLink server: Access to image or local variables
9 Software Interfaces: OPC server: Access to image or local variables
See also:
¾ In this manual:
9 Maximum number of variables per frame with PCDDE
9 Maximum number of variables per frame with OPC server
9 Access to variables
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.
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.
Evolution / compatibility
EPROM of applicom® interfaces upper or equal to V3.5
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.
applicom® interface
Communication card, 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.