Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Color has a deprecated constructor in /homepages/23/d548214462/htdocs/clickandbuilds/Joomla/MyCMS/templates/rt_chapelco/features/color.php on line 11
myCNC - advanced CNC control, software - How to turn ON/OFF output depends on input pin state.

Frequently Asked Question

How to turn on (turn off) output/relay if some of input signal triggered.

Output switching depends on input signal can be configured through cnc-connection in "cnc-variables.xml" configuration file in current profile.

Example of configuration line is shown below.

<value name="cnc-connection-item-002"
source="input-pin:0"
dest="output-pin:3"
K0="0" K="1" deviation="0.5">0</value>

Attribute "source" defines input pin #0 as source of connection.
Attribute "dest" defines output pin #3 as destination of connection.

If input pin #0 is "0" output pin #3 is turned OFF, if input pin is "1" output is turned ON.