beautypg.com

Registration of a string slave – BECKHOFF C1220 User Manual

Page 23

background image

Eiserstraße 5 / D-33415 Verl / Telefon 05246/963-0 / Telefax 05246/963-149

23

Software description of functions

Beckhoff Lightbus - PC interface card C1220

Registration of a string slave

Before string communication with a string slave is possible, it must be
registered with the master card.
This is done by means of function 0x15.

Argument

Channel

Length

Function

0

1

2

Request

0x0A

0x15

SubFnc

Physical
slave
address

Logical
slave
address

Request

0x03

0x15

01

Mn

xy

Enter string slave without
string reset.

02

Mn

Xy

Enter string slave with
string reset.

03

Mn

Xy

Enter string slave without
string reset. Transmission
of the string without
triggering an interrupt at
the slave.

04

Mn

xy

Enter string slave with
string reset. Transmission
of the string without
triggering an interrupt at
the slave.

00

Mn

xy

Deactivate string slave.

Reply

0x03

0x15

0x00

No error.

0x01

Wrong slave address.

0x02

Error during string reset at the slave.

0x03

Optical fibre error.

Before communication with a slave is possible, a string reset must be
successfully carried out. The string reset at a slave synchronises the
handshake bits between master and slave. There are two ways to trigger a
string reset:
-

The reset is initiated by the master when the slave is registered.

-

The reset is initiated at a later time by the slave (see also “Triggering a
String Reset by the Slave”).

A string slave is only addressed for string transmission by means of its
logical slave address (although the logical address can be the same as the
physical address).