plc:m07_mist_coolant_on
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plc:m07_mist_coolant_on [2017/07/13 23:54] – skirillov | plc:m07_mist_coolant_on [2017/10/02 15:38] (current) – skirillov | ||
---|---|---|---|
Line 12: | Line 12: | ||
</ | </ | ||
- | 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> | ||
- | # | + | # |
main() | main() | ||
{ | { | ||
Line 30: | Line 29: | ||
name " | name " | ||
- | <code c vars.h> | + | <code c pins.h> |
#define OUT_COOLANT | #define OUT_COOLANT |
plc/m07_mist_coolant_on.1500004440.txt.gz · Last modified: 2017/07/13 23:54 by skirillov