
Commissioning
60
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
fw.write("0")
fw.close()
fw = open("/sys/class/leds/err_green/brightness", "w")
fw.write("0")
fw.close()
fw = open("/sys/class/leds/run_green/brightness", "w")
fw.write("0")
fw.close()
7.6.4
Programming LED functions with Node.js
The following examples illustrate the programming of the LED functions with Node.js. Further
information on Node.js and the Node.js packages is provided at:
n
n
// initialize the onoff box
const Gpio = require('onoff').Gpio;
//initialize the leds which are free for the user
appl_green_led = new LED('appl_green');
appl_red_led = new LED('appl_red');
error_green_led = new LED('err_green');
error_red_led = new LED('err_red');
run_green_led = new LED('run_green');
run_red_led = new LED('run_red');
Содержание TN-UHF LNX Series
Страница 1: ...Your Global Automation Partner Instructions for Use TN UHF LNX UHF Read Write Head ...
Страница 2: ...2 Hans Turck GmbH Co KG T 49 208 4952 0 F 49 208 4952 264 more turck com www turck com ...
Страница 73: ...V01 00 2019 04 73 Restart the device to complete the update Click Reboot Fig 60 Restarting the device ...
Страница 75: ...V01 00 2019 04 75 Select RS485 RFID and confirm with OK Fig 62 Selecting the RS485 interface ...
Страница 85: ...Over 30 subsidiaries and over 60 representations worldwide www turck com 100003067 2019 04 100003067 ...