beautypg.com

Can-pdo write function 194, Cpwrit 194 – West Control Solutions KS98-1 User Manual

Page 194

background image

III-14.2

CPWRIT (CAN-PDO write function (No. 89))

Function CPWRITE is used for write access to instrument PDOs. Because of the normal quantity of min. 2 PDOs per in -
struments, the data quantity of 2 PDOs 2 with 2 COB-IDs was grouped in a block.

Node address and COB-ID (CAN-OBject IDentifier) parameter setting is in the block. Moreover, node guarding for mon -
itoring the CAN communication to the specified node can be switched on.

Data sent to the instrument must be interpreted according to instrument specification. Groups of 4 transmitted bytes
represent different data types.

To provide the bytes according to the required data type, a conversion function for transforming the value in the engi -
neering into 1 to 4 bytes is available (see function AOCTET).

Examples: R1+R2 > Int16 /

R1+R2+R3+R4 >Long

a

Important note: The heart beat protocol is not supported. If an instrument can be operated only via “heart
beat”, the guarding function must be switched off.

Digital inputs:

start

The function is active, unless the input is connected, or if start=1 is connected.

Digital outputs:

slotid

0

= module correct

1

= module wrong

et-err

0

= no engineering error

1

= no CAN-HW (KS 98-1 type) multiple node monitoring

id-err

0

= correct node id

1

= faulty node id or the instrument does not reply own node ID was specified as
“NodeId” no free send PDOs (TPDO)

valid

bit follows the node status with the node guarding active
(0=”preoperational”, 1=”operational”) always 1 with the node guarding switched off

Analog outputs:

R1 1 ...R1 8

1st to 8th output value in byte format (8-bit) for COB-ID 1

R2 1...R2 8

1st to 8th analog output value in byte format (8-bit) for COB-ID 2

Configuration parameters (can be changed only during OFFLINE):

NodeId

CAN node address

Guard

node guarding off/on

COBID1

decimal ID of the first CAN object identifier

COBID2

decimal ID of the second CAN object identifier

Description of KS 98-1 CAN bus extension

9499-040-82711

III-194

CPWRIT (CAN-PDO write function (No. 89))