9 l_scb_parread_string - "string"-read parameter, Plc designer v2.x| lenze application samples – Lenze PLC Designer V2.x User Manual

Page 290

Advertising
background image

PLC Designer V2.x| Lenze Application Samples

The L_SCB_CANBasic.lib library

L_SCB_ParRead_String - "String"-read parameter

290

L

1.3 EN - 07/2012

17.9

L_SCB_ParRead_String - "String"-read parameter

This FB reads out a string parameter and provides the value read to the application via the

output sData.

Inputs

Outputs

Identifier/data type

Information/possible settings

xExecute

BOOL

Trigger read request.

TRUE Start read request once.

FALSE Deactivate reading.

byNodeNumber

BYTE

Node number

xUseSecondSDO

BOOL

TRUE: Use second SDO channel

FALSE: Use first SDO channel (Lenze setting)

byMasterNumber

BYTE

Interface number (0...3)

wIndex

WORD

CANopen index (0x0 ... 0xFFFF)

bySubCode

BYTE

Subcode (0 ... 255)

Identifier/data type

Information/possible settings

xDone

BOOL

TRUE: Read request completed

xBusy

BOOL

Status output "Read request sent"

• TRUE: The read request was sent to the operating system and the FB is waiting for

a response from the device addressed.

• FALSE: The read request was completed.

xError

BOOL

TRUE: Read request completed

xTimeOut

BOOL

Signalling of a time-out (time-out error)

TRUE: Time-out; read request could not be executed

FALSE: No time-out detected

xNoBlockParameter

Not assigned

sData

STRING (255)

Parameter value read

Advertising