LockUnlock

LockUnlock 1:

The LockUnlock method can be used to unlock or lock an OCA object. If the method was executed successfully, the result is output in the property stObjectLocked.

LockUnlock 2:

Cyclic method call

Since several PLC cycles may pass between sending and the response from the device, this method should be executed cyclically.

Syntax

VAR_INPUT
   pLink     :  POINTER TO ST_Link;
   bExecute  :  BOOL;
   bLock     :  BOOL; //If the Method is executed this Boolean Input decides whether the object should be locked (TRUE) or unlocked (FALSE)
   eCmdMode  :  E_OcaMessageTypeCmdbLock;
END_VAR

LockUnlock 3: Inputs

Name

Type

Description

pLink

POINTER TO ST_Link

Pointer for establishing a connection between OCA objects and the OCA device

bExecute

BOOL

The method is executed with a positive edge at the bExecute input.

bLock

BOOL

Variable that determines whether to lock (TRUE) or unlock (FALSE)

eCmdMode

E_OcaMessageTypeCmd

Depending on whether confirmation is required or not, this input variable is set to E_OcaMessageTypeCmd.OcaCmdRrq or E_OcaMessageTypeCmd.OcaCmd.