User Tools

Site Tools


plc:m07_mist_coolant_on

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plc:m07_mist_coolant_on [2017/07/13 23:54] skirillovplc:m07_mist_coolant_on [2017/10/02 15:38] (current) skirillov
Line 12: Line 12:
 </code> </code>
  
-Output #5 is used as coolant pin.+**Output #5** is used as coolant pin.
  
- +According to smart programming books it is a good style to avoid direct numbers in source code (**portset(5)**) and use variable or define names instead.
-According to smart programming books it is a good style to avoid direct numbers in source code (like portset(5)) and use variables/define names instead.+
  
 In this case source code will be  In this case source code will be 
  
 <code c M07.plc> <code c M07.plc>
-#include vars.h+#include pins.h
 main() main()
 { {
Line 30: Line 29:
 name "OUT_COOLANT is defined in "vars.h" file which is included in the first line. name "OUT_COOLANT is defined in "vars.h" file which is included in the first line.
  
-<code c vars.h>+<code c pins.h>
  
 #define OUT_COOLANT   5 #define OUT_COOLANT   5
plc/m07_mist_coolant_on.1500004440.txt.gz · Last modified: 2017/07/13 23:54 by skirillov

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki