Error signals (data exchange), Example 2: read out serial number – Baumer GK473 User Manual

Page 13

Advertising
background image

Manual_GK473_Profibus_EN.doc 13/16

Baumer IVO GmbH & Co. KG

04.05.11

Villingen-Schwenningen,

Germany

5.5.4. Automatic SPA scanning ON or OFF

The command (@-Z) is for switching on and off the automatic scanning of all SPAs connected.
The preset parameters are overwritten (but not altered permanently).

Data = 0 (30h) = scan OFF
Data = 1 (31h) = scan ON

Several commands to the SPA are only valid until another command is being received (for example
display SPA address in the bottom line of the display). Any automatic scan would turn these
commands void. Furthermore, any long-distance scan is occupying the RS485 bus line so that scan
OFF enables the gateway to handle any Profibus commands much more rapidly.

Example : Scan OFF.

Zhl Adr Cmd Scmd

data

transmit

zz

20h 40h 5Ah 30h

00h

00h

00h

00h

00h

00h

00h 00h 00h 00h

00h

Zhl Adr Cmd Scmd

data

response

zz

20h 40h 5Ah 30h

00h

00h

00h

00h

00h

00h

00h 00h 00h 00h

00h


5.5.5. Readout gateway version or serial number

The command @-X is for reading out the firmware version or serial number of the gateway.
To make a difference, a sub-command „V“ or „S“ is added.

The version number is transmitted in four digits. The digital digit of the main release will be depicted as
a blank, if zero.

Example: V 1.23 = 20h 31h 32h 33h
Example: V 12.34 = 31h 32h 33h 34h

At present the serial number is not yet supported, it is always 00000000.

The total length of command and response is always 16 due to the consistent Profibus transmission
length.
The „address“ parameter (Adr) is only serving for keeping the standard command structure, the value
is always 20h.

Example 1: Read out version number (V 1.00)

Zhl Adr Cmd Scmd „V“

data

transmit

zz

20h 40h 58h 56h

00h

00h

00h

00h

00h

00h

00h 00h 00h 00h

00h

Zhl Adr Cmd Scmd „V“

data

response

zz

20h 40h 58h 56h

20h

31h

30h

30h

00h

00h

00h 00h 00h 00h

00h


Example 2: Read out serial number

Zhl Adr Cmd Scmd „S“

data

Senden

zz

20h 40h 58h 53h

00h

00h

00h

00h

00h

00h

00h 00h 00h 00h

00h

Zhl Adr Cmd Scmd „S“

data

response

zz

20h 40h 58h 53h

30h

30h

30h

30h

30h

30h

30h 30h 00h 00h

00h


5.6. Error signals (data exchange)

Messages relating to SPA communication are handled within the standard data exchange procedure.

There is a difference between SPA messages and gateway messages.

• A SPA indicates an error after a transparently passed command. Regarding the respective

message please refer to the corresponding SPA interface description. Both messages „format
error“ and CRC error“ are possible.

Advertising