ABB SPA-ZC 302 Installation And Commissioning Manual page 54

Profibus-dpv1/spa gateway
Table of Contents

Advertisement

SPA-ZC 302
54
Profibus-DPV1/SPA Gateway
Installation and Commissioning Manual
After the configuration is downloaded and the gateway has started, the defined
indirect SPA message is used by writing its assigned number (8 bit) to Query slot 15
Index 5. The value of the 7th bit in the number shall be changed in order to trigger
the gateway to send the message to the SPA slave.
Example:
Assume that there is a defined indirect SPA message with number 1. When
writing value 0x81 to Query slot 15 Index 5, the gateway sends the message
to the SPA slave. Next time the value 0x1 shall be written into slot 15 Index
5 in order to trigger the operation.
Setting the static data to zero in the configuration enables the use of Indirect SPA
value, which means that the gateway uses the value in slot 15 index 6 in the SPA
command, see Section 5.4.8.6. Indirect SPA Messages.
Write the value (32 bit) to Query slot 15 Index 6 before triggering the sending. Keep
in mind that this value (and the static data value) is scaled in the same way as the
cyclic parameters values, see Section 5.4.8.7. Scaling of messages, for example, if
the decimal place is 1 and scaling value 1 is scaled to 0.1 on SPA bus.
It is recommended to check the module status after indirect SPA messages to ensure
that the message response indicates no errors.
The response to the sent indirect SPA message can be read from response slot 17.
The data is set up as follows:
SPA request status can be found in slot 17 index 0. The length of the SPA status is
two bytes. See the status code in Table 6.4.-1.
If the response from the SPA device contains data, for example the value of the
current measurement, it can be found in slot 17 index 1. The length of the data is four
bytes.
The status word in response slot 17 can have one of the following values, see Table
6.4.-1
Table 6.4.-1
Indirect SPA messages error table
Description Error
No Error
SPA Slave-Checksum Error
SPA Slave-Busy
SPA Slave-Input Buffer Overflow
SPA Slave-Msg too Complicated
SPA Slave-Reserved High Lvl
SPA Slave-Syntax Error
SPA Slave-Missing data
SPA Slave-Impossible Address
SPA Slave-Not Validated
Code
Description
0x1000
No error has occurred
0x8000
SPA message contains a checksum error
0x8001
SPA slave is busy
0x8002
SPA input buffer overflowed
0x8003
Message from the master is too
complicated for the slave
0x8004
Reserved for higher level of
communication
0x8005
Syntax Error. Incorrect message type or
category etc.
0x8006
Slave does not contain all requested data
in the message
0x8007
Addressed data is impossible to write or
read
0x8008
Data in write message not validated
1MRS755014

Advertisement

Table of Contents
loading

Table of Contents