Function elements: CANopen SYNC. IFM CR0403

Add to My manuals
231 Pages

advertisement

Function elements: CANopen SYNC. IFM CR0403 | Manualzz

BasicController CR0403

Function elements: CANopen SYNC

Content

CANOPEN_GETSYNCSTATE .............................................................................................................121

CANOPEN_SETSYNCSTATE .............................................................................................................123

35742

120

BasicController CR0403

CANOPEN_GETSYNCSTATE

= Get SYNC state

Unit type = function block (FB)

Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB

Symbol in CODESYS:

35069

>

Description

35334

CANOPEN_GETSYNCSTATE reads...

• the setting of the SYNC functionality (active / not active),

• the error state of the SYNC functionality (SyncError).

If the PLC CAN runs as CANopen slave, it is signalled via this FB whether SYNC signals are absent or appear regularly.

>

Synchronous PDOS etc. are handled in the CAN stack. CANOPEN_GETSYNCSTATE, however, provides the error state so that the application program can react accordingly.

Parameters of the inputs

35175

Parameter

EXECUTE

CHANNEL

Data type

BOOL := FALSE

BYTE

Description

FALSE  TRUE (edge): execute function element once otherwise: function element is not active

A function element already started is processed.

CAN interface (1...n) depending on the device

121

BasicController CR0403

>

Parameters of the outputs

35058

Parameter

SYNC

SYNCERROR

RESULT

Data type

BOOL

BYTE

BYTE

Possible results for RESULT:

0

Value dec | hex

00

Description

FB is inactive

1

8

242

01

08

F2 function block execution completed without error function block not yet executed

Error: setting is not possible

Description status of the SYNC functionality

TRUE: SYNC is activated:

In the master mode SYNC telegrams are generated according to the settings in the configuration, and synchronous PDOs are transmitted and received.

In the slave mode SYNC telegrams are received and accordingly processed.

FALSE: SYNC is not active

(sync error) SYNC error message

0 = no error

>0 = SYNC error (slave mode) feedback of the function block

(possible messages → following table)

122

BasicController CR0403

CANOPEN_SETSYNCSTATE

= Set SYNC state

Unit type = function block (FB)

Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB

Symbol in CODESYS:

35400

>

>

Description

35337

>

With CANOPEN_SETSYNCSTATE, the SYNC functionality is switched on and off.

Parameters of the inputs

Parameter

EXECUTE

CHANNEL

SYNC

Data type

BOOL := FALSE

BYTE

BOOL

35176

Description

FALSE  TRUE (edge): execute function element once otherwise: function element is not active

A function element already started is processed.

CAN interface (1...n) depending on the device status of the SYNC functionality

TRUE: SYNC is activated:

In the master mode SYNC telegrams are generated according to the settings in the configuration, and synchronous PDOs are transmitted and received.

In the slave mode SYNC telegrams are received and accordingly processed.

FALSE: SYNC is not active

Parameters of the outputs

35080

Parameter

RESULT

Data type

BYTE

Description feedback of the function block

(possible messages → following table)

Possible results for RESULT:

0

Value dec | hex

00

Description

FB is inactive

1

8

38

242

01

08

26

F2 function block execution completed without error function block not yet executed

SYNC could not be activated

Error: setting is not possible

123

advertisement

Related manuals

Download PDF

advertisement

Table of contents