Function elements: RAW-CAN remote. IFM CR0403

Add to My manuals
231 Pages

advertisement

Function elements: RAW-CAN remote. IFM CR0403 | Manualzz

BasicController CR0403

Function elements: RAW-CAN remote

Content

CAN_REMOTE_REQUEST ...................................................................................................................86

CAN_REMOTE_RESPONSE.................................................................................................................87

35757

85

BasicController CR0403

CAN_REMOTE_REQUEST

Unit type = function block (FB)

Unit is contained in the library ifm_RawCAN_NT_Vxxyyzz.LIB

Symbol in CODESYS:

35438

>

Description

>

In order to request a remote message, an according requirement is dispatched via

CAN_REMOTE_REQUEST and the response of the other device is sent back as result.

Parameters of the inputs

35362

35220

Parameter

EXECUTE

CHANNEL

ID

Data type

BOOL := FALSE

BYTE

DWORD

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

Number of the data object identifier: normal frame (2 11 IDs):

0...2 047 = 0x0000 0000...0x0000 07FF extended Frame (2 29 IDs):

0...536 870 911 = 0x0000 0000...0x1FFF FFFF

TRUE: extended Frame (ID = 0...2

29 -1)

FALSE: normal Frame (ID = 0...2

11 -1)

>

Extended

(optional use of the parameter)

Parameters of the outputs

BOOL := FALSE

Parameter

DATALENGTHCOUNT

DATA

RESULT

Data type

BYTE

ARRAY [0..7] OF BYTE

BYTE

Possible results for RESULT:

Value dec | hex

Description

0

1

5

9

242

00

01

05

09

F2

FB is inactive function block execution completed without error

FB is being processed – still receiving

CAN is not active

Error: setting is not possible

Description

= Data Length Count number of the data bytes received received data, (1...8 bytes) feedback of the function block

(possible messages → following table)

86

34983

BasicController CR0403

CAN_REMOTE_RESPONSE

Unit type = function block (FB)

Unit is contained in the library ifm_RawCAN_NT_Vxxyyzz.LIB

Symbol in CODESYS:

35433

>

Description

35365

CAN_REMOTE_RESPONSE provides data to the CAN controller in the device which is automatically sent upon the request of a remote message.

This FB strongly depends on the device type. Only a limited number of remote messages can be set up:

BasicController: CR040n, CR041n, CR043n

BasicDisplay: CR045n

>

PDM360 NG: CR108n, CR120n max. 40 remote messages max. 100 remote messages

Parameters of the inputs

35738

Parameter

ENABLE

CHANNEL

ID

Extended

(optional use of the parameter)

DATALENGTHCODE

DATA

Data type

BOOL := FALSE

BYTE

DWORD

BOOL := FALSE

BYTE

ARRAY [0..7] OF BYTE

Description

TRUE: execute this function element

Edge: enter the new values

FALSE: unit is not executed reset internal remote values

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

Number of the data object identifier: normal frame (2 11 IDs):

0...2 047 = 0x0000 0000...0x0000 07FF extended Frame (2 29 IDs):

0...536 870 911 = 0x0000 0000...0x1FFF FFFF

TRUE: extended Frame (ID = 0...2

29 -1)

FALSE: normal Frame (ID = 0...2

11 -1)

= Data Length Code number of the data bytes to be sent (0...8) data to be sent (1...8 bytes)

87

BasicController CR0403

>

Parameters of the outputs

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

6

7

06

07

FB is inactive

FB is being processed

– remote for ID not active

FB is being processed – remote for ID active

8

10

242

08

0A

F2 function block is active no further remote entrys available

Error: setting is not possible

34996

88

advertisement

Related manuals

Download PDF

advertisement

Table of contents