Sensor systems 2 AS-Interface

Sensor systems 2 AS-Interface Sensor systems 2 AS-Interface

18.01.2013 Views

AS-Interface - Introduction Master call Slave response 18 The AS-Interface bus protocol The AS-Interface message is constructed in a very compact way. For the user, this all occurs in the background, and it is presented here only to give you a better understanding of data transmission. The slave response, always 7 bits long after the 14-bit master query, takes the following form: SB CB A4 A3 A2 A1 A0 I4 SEL I2 I1 I0 PB EB 1 start bit (SB, always "0") 1 control bit (CB) 5 address bits (A0 ... A4) plus SEL bit for A/B address for expansion to 62 slaves 5 data bits (I0, I1, I2, I4) 1 parity bit (PB) 1 end bit (EB, always "1") The AS-Interface master uses the control bit to tell the slave whether this message is a command (i.e. read I/O configuration, read ID code, etc.) or a data or parameter call. Together with the SEL bit, the 5 address bits denote the slave being addressed. With 5+1 Bits, 64 nodes can be addressed. Address 0 must always be unoccupied, since it is used for automatic addressing after an exchange. Thus up to 62 slaves can be addressed. In a data or parameter call (CB = "0"), the I4 bit is used to distinguish between I4 = "0" ==> parameter call I4 = "1" ==> data call . The bits I0 ... I2 contain the output data, by which up to 3 outputs can be controlled or 3 parameter bits transmitted. The entire message is secured with a parity bit and is concluded with an end bit. In specification 2.0 (standard mode) the I3 bit was available as a fourth output bit, which is now used as select bit (SEL) when extended-mode addressing is in operation. If slaves built to specification 2.1 can be operated in standard mode, the I3 bit can also be used as an output bit. In the slave response, besides the 4 bits of input data, only the start bit (SB), the parity bit (PB), and the end bit (EB) are transmitted. SB I3 I2 I1 I0 PB EB The master cyclically interrogates the unique addresses (1A, 1B, 2A, 2B, 3A...31A, 31B) of all slaves in turn in a polling process. The addresses in use are stored in the master's configuration. It only queries these existing addresses, which shortens the cycle time correspondingly. Subject to reasonable modifications due to technical advances. Copyright Pepperl+Fuchs, Printed in Germany Pepperl+Fuchs Group Tel.: Germany +49 621 776-0 USA +1 330 4253555 Singapore +65 67799091 Internet http://www.pepperl-fuchs.com Issue date 2004-11-19 - Catalogue AS-Interface 2004/2005

Issue date 2004-11-19 - Catalogue AS-Interface 2004/2005 Parameters Summary of parameters AS-Interface - Introduction Topology: Arbitrary: Line, star, tree, etc. Number of nodes: 62 AS-Interface slaves (max. 4 x 62 binary inputs and 3 x 62 outputs) Access method: Master/Slave Address assignment: Via master, with addressing unit, or automatically upon exchange Cable: Unshielded two-conductor cable, round cable 2 x 1.5 mm 2 or AS-Interface flat cable 2 x 1.5 mm 2 Network length: 100 m overall length with 2 repeaters up to a max. of 300 m between master and end of bus cable, in star topology larger overall length with additional repeaters Transfer rate: approx. 167 kBit/sec Cycle time: max. 10 ms with 62 A/B slaves El. interface: Data transfer: APM with sin2 pulses Power supply: approx. 30.5 V DC, max. 8 A total current Auxiliary power: 24 V DC, max. 8 A Bit encoding: Manchester Data/message: 4 bits bidirectional Data security: Signal quality monitoring + 1 parity bit, corresponds to HD = 4 (Hamming Distance) Subject to reasonable modifications due to technical advances. Copyright Pepperl+Fuchs, Printed in Germany Pepperl+Fuchs Group Tel.: Germany +49 621 776-0 USA +1 330 4253555 Singapore +65 67799091 Internet http://www.pepperl-fuchs.com 19

<strong>AS</strong>-<strong>Interface</strong> - Introduction<br />

Master call<br />

Slave response<br />

18<br />

The <strong>AS</strong>-<strong>Interface</strong> bus protocol<br />

The <strong>AS</strong>-<strong>Interface</strong> message is constructed in a very compact way. For the<br />

user, this all occurs in the background, and it is presented here only to give<br />

you a better understanding of data transmission.<br />

The slave response, always 7 bits long after the 14-bit master query, takes<br />

the following form:<br />

SB CB A4 A3 A2 A1 A0 I4 SEL I2 I1 I0 PB EB<br />

1 start bit (SB, always "0")<br />

1 control bit (CB)<br />

5 address bits (A0 ... A4) plus SEL bit for A/B address for expansion to 62<br />

slaves<br />

5 data bits (I0, I1, I2, I4)<br />

1 parity bit (PB)<br />

1 end bit (EB, always "1")<br />

The <strong>AS</strong>-<strong>Interface</strong> master uses the control bit to tell the slave whether this<br />

message is a command (i.e. read I/O configuration, read ID code, etc.) or a<br />

data or parameter call.<br />

Together with the SEL bit, the 5 address bits denote the slave being addressed.<br />

With 5+1 Bits, 64 nodes can be addressed. Address 0 must always<br />

be unoccupied, since it is used for automatic addressing after an exchange.<br />

Thus up to 62 slaves can be addressed.<br />

In a data or parameter call (CB = "0"), the I4 bit is used to distinguish between<br />

I4 = "0" ==> parameter call<br />

I4 = "1" ==> data call<br />

.<br />

The bits I0 ... I2 contain the output data, by which up to 3 outputs can be<br />

controlled or 3 parameter bits transmitted. The entire message is secured<br />

with a parity bit and is concluded with an end bit. In specification 2.0 (standard<br />

mode) the I3 bit was available as a fourth output bit, which is now used<br />

as select bit (SEL) when extended-mode addressing is in operation. If<br />

slaves built to specification 2.1 can be operated in standard mode, the I3 bit<br />

can also be used as an output bit.<br />

In the slave response, besides the 4 bits of input data, only the start bit (SB),<br />

the parity bit (PB), and the end bit (EB) are transmitted.<br />

SB I3 I2 I1 I0 PB EB<br />

The master cyclically interrogates the unique addresses (1A, 1B, 2A, 2B,<br />

3A...31A, 31B) of all slaves in turn in a polling process. The addresses in<br />

use are stored in the master's configuration. It only queries these existing<br />

addresses, which shortens the cycle time correspondingly.<br />

Subject to reasonable modifications due to technical advances. Copyright Pepperl+Fuchs, Printed in Germany<br />

Pepperl+Fuchs Group Tel.: Germany +49 621 776-0 USA +1 330 4253555 Singapore +65 67799091 Internet http://www.pepperl-fuchs.com<br />

Issue date 2004-11-19 - Catalogue <strong>AS</strong>-<strong>Interface</strong> 2004/2005

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!