====== Connections ====== * This function allows you to directly forward the value of the selected register or port to control the selected function, and allows you to redirect the selected register or port to another port and the controller register. For example, controlling the pwm value through the value of the analog input, controlling the value of the global variable via the analog input, controlling the value of the output register through the value of the selected input register. This function allows you to control inputs and outputs without the use of PLC procedures. Main window:{{ :mycnc:connections_01.png |}} Basic functions:{{ :mycnc:connections_03_1.png?nolink |}} * To set a new rule, simply add a new connection using the corresponding "+" icon in the program{{ :mycnc:connections_04.png |}} * Next, select the input register for the connection. Register, the values of which will be converted subsequently to the value of the output register or input or variable.{{ :mycnc:connections_05.png |}} {{ :mycnc:connections_06.png |}} * The parameter value is set as required. Variants of the parameter values are given in the table. ^ Name input ^ Parametr ^ ^ ADC | Number of input ADC chanel | ^ DAC | Number of output DAC chanel | ^ PWM | Number of output PWM chanel | ^ Iput Pin | Numper of input pin | ^ Input Port | Numper of input port | ^ Output Pin | Numper of output pin | ^ Output Port | Numper of output port | ^ Encoder | Number of encoder | ^ Global Variable | Number of global variable | ^ Item | name of item | ^ XItem | name of xitem | *The next step is to select the desired output control, such as register, port, global variable, etc.{{ :mycnc:connections_07.png |}} * The parameter value is set as required. Variants of the parameter values are given in the table. ^ Name input ^ Parametr ^ K ^ K0| ^ ADC | Number of input ADC chanel |0|0| ^ DAC | Number of output DAC chanel |0|0| ^ PWM | Number of output PWM chanel |PWM works according to the formula Kx + K0. Where "Х" is the value of the input parameter. A K and K0 are given coefficients|| ^ Iput Pin | Numper of input pin |0|0| ^ Input Port | Numper of input port |0|0| ^ Output Pin | Numper of output pin |0|0| ^ Output Port | Numper of output port |0|0| ^ Encoder | Number of encoder |0|0| ^ Global Variable | Number of global variable |0|0| ^ Item | name of item |0|0| ^ XItem | name of xitem |0|0| * Simple1. The value of the encoder number 2 changes the value of the global variable number 7012{{ :mycnc:connections_02.png |}} * Simple2. The value of the ADC chanel number 3 changes the value of the global variable number 7012{{ :mycnc:connection_08.jpg?nolink |}} * Simple3. The value of the ADC chanel number 3 changes the value for output DAC chanel 1{{ :mycnc:connections_10.jpg?nolink |}} * Simple4. The state of the input pin 4 is transmitted to the output pin 1. Ie. at the value of input pin 0, the output is switched off, and at the value of input pin 1, the output is switched on.{{ :mycnc:connections_11.jpg?nolink |}}