Switch point (h-function), L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 640

Advertising
background image

L-force | PLC Designer

General Editors

638

DMS 4.1 EN 03/2011 TD29

Switch point (H-function)
Function H
The switch functionality or H-function in DIN66025 enables the programmer to
operate binary path-dependent switches. Basically always first the number of the
switch must be specified ("H<number>"), then the switch position must be defined,
either absolutely by using the word "L<position>" or relatively by using the word
"O<position>".

Allowed syntax
[G-command] H O/L

Parameters of
the command

H

Number of the H-function

O

Relative position in the object [0..1]
0: Start
1: End

IL

L> 0: Distance to the start point
L< 0: Distance to the end point


H-numbers
If the H-number is positive, the corresponding H-function is switched on, otherwise it
is switched off. H-numbers must not be 0 and have to lie in the range from -32767 to
32767.
The H-numbers 1-32 are logged in the interpolator. The output dwSwitches of the
function block SMC_Interpolator is a bit mask. Bit number i indicates whether the H-
function (i +1) is currently set or not. H-numbers greater than 32 are not logged.
The interpolator outputs with iLastSwitch the last switched H-number. iLastSwitch is
positive, when the H-function was switched on, and otherwise it is negative.

Advertising