Miscellaneous blocks, Convert to boolean (to_bool), C.9 miscellaneous blocks – Nematron Pointe Controller User Manual
Page 429: C.9.1 convert to boolean (to_bool)
Pointe Controller User Guide
Appendix C: Ladder Diagram Block Reference
427
C.9
Miscellaneous Blocks
C.9.1 Convert to Boolean (TO_BOOL)
When used in a Ladder Diagram, the TO_BOOL block converts any input value
into an equivalent boolean (bit) tag. All non-zero inputs are converted to 1, while
zero inputs are converted to 0.
Select the
tool (from the
Miscellaneous Blocks
toolbar) and click on a ladder
rung to insert the following block:
Once the block is inserted, you can double-click on it to
configure
it.
Functional Description
This block always passes the Enable input state (EN) through to the Enable Out
output state (ENO) without change; when EN becomes on, ENO is turned on, and
when EN becomes off, ENO is turned off.
When EN becomes on, the block function is executed: the Input Value (IN) is
converted into its equivalent boolean (bit) value and the result is sent to the
Output Value (OUT). If IN is any non-zero value, then OUT is set to 1. If IN is zero,
then OUT is set to 0.
NOTE: When IN is a String, conversion to a numeric representation is attempted.
If the conversion succeeds, then OUT is set to 1. If the conversion fails, then OUT is
set to 0.
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.