Escolar Documentos
Profissional Documentos
Cultura Documentos
Introduction One of the two serial interfaces (X2/X3) can be used for the link to other host
systems (e.g., SIMATIC S5-95U or host PC). Two drivers (SIWAREX driver
and 3964 R) are provided for this purpose.
The SIWAREX M can be adjusted, parameterized and controlled by sending
(sending telegrams) or fetching (fetch telegrams) data records.
Restrictions When the RS 232 interface (X2) is used for the link to a host system, a
printer cannot be connected.
When the TTY interface (X3) is used for the link to a host system, a remote
display cannot be connected.
Method of function If a host system link is implemented via the serial link, the SIWAREX M is
always the slave, and the host system is always the master.
When the partner (master) wants to read a data record from the
SIWAREX M, this record must first be requested with a fetch telegram
(DR100). Using a response telegram, the requested data record (DRxx) is
sent back from the SIWAREX M. When the master transfers a data telegram,
the SIWAREX M then sends back an acknowledgment telegram (DR101).
This acknowledgment telegram may contain positive and negative response
messages.
The maximum length of user data is currently limited to 80 bytes
(DR80 and 81). The data records which are available are listed in
section 9.
In data record 51, two bytes each are reserved for the error types external
errors, internal errors and operational errors. The error numbers are set up as
bit structures and not as codes. Since each error code has an appropriate bit
number allocated to it, errors of the same type which are waiting at the same
time can be reported simultaneously.
The SIWAREX M extends error messages via DR51 to at least 3 seconds so
that even briefly queued asynchronous errors (i.e., internal, external and op-
erational errors) can be detected. This means that data record DR51 should
be read at shorter intervals so that all errors can be acquired by the user.
How the driver The SIWAREX driver operates in the lowest level with a simple telegram
functions layout with 2 end characters. The telegrams also contain characters (BCC
and length byte) used to improve transmission reliability and identification.
These characters should be evaluated by partner stations.
In the data to be transferred, each telegram header contains a scales number
for identification. Scales numbers from 1 to 16 are permitted. If the scales
number does not match the entry in DR3, the telegram received is rejected in
the SIWAREX M. If the scales number matches the entry in DR3, the ad-
dress of the sender of the request telegram is entered as the receiver address
in the response telegram. Each set of scales can be addressed with either its
individual scales number or the address 0. The host has a default sender ad-
dress of 255.
When a byte with the code DLE (0x10) occurs within bytes 1 to (n-2) byte,
this byte is doubled by the sender (to avoid a chance end ID within the user
data) without including it in the calculation of the length.
The receiver must undouble the byte again.
The block check character (BCC) is generated with bytes 1 up to and includ-
ing byte (n-3).
Example:
Link 1st byte with 2nd byte via EXOR
Link result with 3rd byte via EXOR
...
Link result with (n-3)th byte via EXOR
The end result is the BCC block check character.
When the character delay time is exceeded on the SIWAREX M, the inter-
face is reset to its basic state. An error message is not generated. In addi-
tion, the block check characters and the length data are verified on the
SIWAREX M. Errors are reported in the acknowledgment telegram with the
identifier 60hex. If the length and the BCC byte in the telegram are zero, no
check is performed.
When the SIWAREX driver is used with the RS 232 interface, a timeout
monitoring function (no fetch telegram for 30 sec) causes an automatic
switch from the SIWAREX driver to the printer protocol when no fetch tele-
gram has occurred within 30 seconds.
How the driver A link in accordance with the 3964R protocol can be made on the TTY and
functions RS 232 interface of the SIWAREX M.
The 3964R protocol specifies the mechanisms required for reliable and se-
cure transmission (e.g., checksums, control characters and so on).
In the data to be transferred, each telegram header contains a scales number.
Scales numbers from 1 to 16 are permitted. If the scales number does not
match the entry in DR3, the telegram received is rejected in the
SIWAREX M. If the scales number matches the entry in DR3, the address of
the sender of the request telegram is entered in the response telegram as the
receiver address. Each set of scales can be addressed with either its indi-
vidual scales number or the address 0. The host has a default sender address
of 100.
Setting the TTY interface can be accomplished by sending DR8 via the
SIMATIC interface or by using SIWATOOL.
Setting the RS 232 interface can be accomplished by sending DR7 via the
SIMATIC interface or by using SIWATOOL.
S5 S7/C7
0 = 2400 bit/sec
Transmission rate of the RS 232 interface 52 RS232 PARA
RS232_PARA 178 7 1 0 2 WORD
1 = 9600 bit/sec*
0 = Odd
Parity of the RS 232 interface 52 RS232 PARA
RS232_PARA 178 7 1 1 2 WORD
1 = Even*
0 = Printer/SIWAREX protocol *
Protocol of the RS232 interface 52 RS232_PARA 178 7 1 3 2 WORD
1 = 3964R protocol
0 = No B protocol *
Protocol of the RS232 interface 52 RS232_PARA 178 7 1 4 2 WORD
1 = B protocol
ADJ_DATA
Scales number DL 130 3 40 - 42 BYTE Scales number 0*
28 SCALES_NO
DR
6.2 9 - 1 - 1 BYTE Operational error 06
Data transmission error on the TTY 145 OPER ERR**
OPER_ERR**
interface
148 - 51 4 5 6 BOOL Operational error 06
***
DR
6.2 9 - 1 - 1 BYTE Operational error 07
Data transmission error on the RS 232 145 OPER ERR**
OPER_ERR**
interface
148 51 4 5 6 BOOL Operational error 06
***
* Factory setting of SIWAREX M ** Message bit via indication word of FC SIWA-M
*** Sequence: Group error bit, type of error, change signal