Nematron Pointe Controller User Manual
Page 400
Appendix C: Ladder Diagram Block Reference
Pointe Controller User Guide
398
Therefore, a 16-bit example of SHL would be:
IN: 1010010101011101
N: 5
OUT: 0000010100101010
The block function is executed every time the ladder is
scanned
, so long as EN
remains on. If EN becomes off, then OUT remains at its last calculated value until
EN becomes on and the block function is executed again.
Configuration Reference
The parameters of this block are described in the following table:
Param
Name
Config
Var Type
Description
EN
Enable
no
-
The state of the rung (off/on)
received from the left.
ENO
Enable
Out
no
-
The state of the rung (off/on)
passed to the right.
IN
Input
Value
req
any integer*
T_DONE
T_VALUE
T_PREVAL
The input value.
N
Number
of Places
req
unsigned**
T_DONE
T_VALUE
T_PREVAL
Numeric
The number of places to be shifted.
OUT
Output
Value
req
any integer*
The result of shifting the input
value n places to the right.
* Any Input, Output, or Memory tag except 32-bit Real (F) or Bit (X). For more information, see
“
Defining Input, Output, Memory tags
” on page 114
.
** Any unsigned (UB, UW, UD, X) Input, Output, or Memory tag. For more information, see “
Defining
Input, Output, Memory tags
” on page 114
.
NOTE: If the function result is larger than the output variable (for example, a 16-
bit result to be placed in an 8-bit output variable), then the high-order bits of the
result are discarded and the low-order bits are placed in the output. No overflow
error is generated.