10 l_scb_parwrite - write parameter, L_scb_parwrite - write parameter, Plc designer v2.x| lenze application samples – Lenze PLC Designer V2.x User Manual
Page 291
1.3 EN - 07/2012
L
291
PLC Designer V2.x| Lenze Application Samples
The L_SCB_CANBasic.lib library
L_SCB_ParWrite - write parameter
17.10
L_SCB_ParWrite - write parameter
This FB writes the value of data input dwData to a parameter.
Outputs
Identifier/data type
Information/possible settings
xExecute
BOOL
Trigger write request.
TRUE Start write request once.
FALSE Deactivate writing.
byNodeNumber
BYTE
Node number
xUseSecondSDO
BOOL
TRUE: Use second SDO channel
byMasterNumber
BYTE
Interface number (0...3)
wIndex
WORD
CANopen index (0x0 ... 0xFFFF).
bySubCode
BYTE
Subcode (0 ... 255)
dwData
DWORD
Parameter value to be written
byNrOfBYTE
BYTE
Number of bytes (initial value: 4)
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
Status output "Error"
• TRUE: During the processing an error has occurred.
xTimeOut
BOOL
Signalling of a time-out (time-out error)
• TRUE: Time-out; read request could not be executed
• FALSE: No time-out detected