Lydia - Printhead
PHApp.cpp
Go to the documentation of this file.
1 #include "PHApp.h"
2 #include "features.h"
3 
4 // <<1;2;64;printRegisters:1:0>>
5 // <<1;2;64;print:1:0>>
6 
7 #if defined(MB_RELAY_0) || defined(MB_RELAY_1) || defined(MB_RELAY_2) || defined(MB_RELAY_3)
8 #include "./components/Relay.h"
9 #endif
10 
11 #if (defined(MB_ANALOG_3POS_SWITCH_0) && defined(MB_ANALOG_3POS_SWITCH_1) || defined(MB_ANALOG_3POS_SWITCH_3))
13 #endif
14 #ifdef HAS_STATUS
16 #endif
17 
18 #include <Ethernet.h>
19 #include <macros.h>
20 
21 #include "./config.h"
22 #include "./config_adv.h"
23 #include "./enums.h"
24 #include "./features.h"
25 #include "./debug_utils.h"
26 #include "ModbusBridge.h"
27 
28 #define XD 1
29 
30 #define ADD_RELAY(relayNum, relayPin, relayKey, relayRegister) \
31  relay_##relayNum = new Relay(this, relayPin, relayKey, relayRegister); \
32  components.push_back(relay_##relayNum); \
33  relay_##relayNum->setGateway(modbusBridge->getMudbus())
34 
35 #define ADD_POT(potNum, potPin, potKey, potRegister) \
36  pot_##potNum = new POT(this, potPin, potKey, potRegister); \
37  components.push_back(pot_##potNum); \
38  pot_##potNum->setGateway(modbusBridge->getMudbus())
39 
40 #define ADD_POS3ANALOG(posNum, switchPin1, switchPin2, switchKey, switchRegister) \
41  pos3Analog_##posNum = new Pos3Analog(this, switchPin1, switchPin2, switchKey, switchRegister); \
42  components.push_back(pos3Analog_##posNum); \
43  pos3Analog_##posNum->setGateway(modbusBridge->getMudbus())
44 
45 short PHApp::print(short arg1, short arg2)
46 {
47  uchar s = components.size();
48  for (uchar i = 0; i < s; i++)
49  {
50  Component *component = components[i];
51  component->info();
52  }
53  return E_OK;
54 }
55 
57 {
58 
59 #if ENABLED(HAS_MODBUS_REGISTER_DESCRIPTIONS)
60  Log.setShowLevel(false);
61  Serial.print("| Name | ID | Address | RW | Function Code | Number Addresses |Register Description| \n");
62  Serial.print("|------|----------|----|----|----|----|-------|\n");
63  short size = components.size();
64  for (int i = 0; i < size; i++)
65  {
66  Component *component = components[i];
67  if (!(component->nFlags & 1 << OBJECT_NET_CAPS::E_NCAPS_MODBUS))
68  {
69  continue;
70  }
71  Log.verbose("| %s | %d | %d | %s | %d | %d | %s |\n",
72  (Component *)component->name.c_str(),
73  component->id,
74  component->getAddress(),
75  component->getRegisterMode(),
76  component->getFunctionCode(),
77  component->getNumberAddresses(),
78  component->getRegisterDescription().c_str());
79  }
80  Log.setShowLevel(true);
81 #endif
82 }
83 
84 short PHApp::reset()
85 {
86 #ifdef ARDUINO
87  // Reset code for Arduino
88  asm volatile("jmp 0");
89 #endif
90 #ifdef ESP8266
91  ESP.restart();
92 #endif
93  return E_NOT_IMPLEMENTED;
94 }
95 
96 short PHApp::list(short val0, short val1)
97 {
98  uchar s = components.size();
99  for (uchar i = 0; i < s; i++)
100  {
101  Component *component = components[i];
102  Log.verboseln("PHApp::list - %d | %s", component->id, component->name.c_str());
103  }
104  return E_OK;
105 }
107 {
108  Serial.begin(SERIAL_BAUD_RATE);
109  while (!Serial && !Serial.available())
110  {
111  }
112  Log.begin(LOG_LEVEL_VERBOSE, &Serial);
113  setFlag(OBJECT_RUN_FLAGS::E_OF_DEBUG);
114  Ethernet.begin(mac, ip, gateway, subnet);
115  bridge = new Bridge(this);
116  com_serial = new SerialMessage(Serial, bridge);
117  components.push_back(com_serial);
118  components.push_back(bridge);
119 
120 #ifdef MODBUS_BRIDGE
121  modbusBridge = new ModbusBridge(this);
122  components.push_back(modbusBridge);
123 #endif
124 
125 #ifdef OMRON_PID_SLAVE_START
127  components.push_back(pids);
128 #endif
129 
130 #ifdef MB_RELAY_0
132 #endif
133 
134 #ifdef MB_RELAY_1
136 #endif
137 
138 #ifdef MB_ANALOG_0
140 #endif
141 
142 #ifdef MB_ANALOG_1
144 #endif
145 
146 #if (defined(MB_ANALOG_3POS_SWITCH_0) && (defined(MB_ANALOG_3POS_SWITCH_1)))
148 #endif
149 
150 #if (defined(MB_ANALOG_3POS_SWITCH_2) && (defined(MB_ANALOG_3POS_SWITCH_3)))
152 #endif
153 
154 #ifdef HAS_OMRON_VFD_MODBUS
156  components.push_back(omronVFD);
159  omronVFD->speed = pot_1;
160  omronVFD->owner = this;
161 #endif
162 
163 #ifdef HAS_FEED_SERVO
171  components.push_back(stepperController_0);
173 #endif
174 
175 #ifdef MOTOR_LOAD_PIN
177  components.push_back(mLoad);
178  mLoad->setGateway(modbusBridge->getMudbus());
179 #ifdef OMRON_MX2_SLAVE_ID
180  if (omronVFD)
181  {
183  }
184 #endif
185 
186 #endif
187 
188 #ifdef HAS_STATUS
189  statusLight_0 = new StatusLight(this,
193  components.push_back(statusLight_0);
194  statusLight_0->setGateway(modbusBridge->getMudbus());
195 
196  statusLight_1 = new StatusLight(this,
200  components.push_back(statusLight_1);
201  statusLight_1->setGateway(modbusBridge->getMudbus());
202 #else
204 #endif
205 
206 #ifdef HAS_FEED_SERVO
208  {
210  }
211 #endif
212 
213  _state = APP_STATE::RESET;
214  _error = E_OK;
215 
216  App::setup();
217  registerComponents(bridge);
218  onRegisterMethods(bridge);
219 
224  delay(500);
229 
230  print(0, 0);
231 
232 #ifdef PRINT_MODBUS_REGISTERS
233  printRegisters();
234 #endif
235 
236 #ifdef MB_RELAY_0
238 #endif
239 
240 #ifdef MB_RELAY_1
242 #endif
243 
244 #if defined(HAS_FEED_SERVO) && defined(MB_RW_FEED_VFD_DEFAULT_SPEED_RATIO)
246 #endif
247 
248  return E_OK;
249 }
250 
251 short PHApp::onRegisterMethods(Bridge *bridge)
252 {
253  Log.verbose(F("* App:onRegisterMethods *" CR));
254  bridge->registerMemberFunction(COMPONENT_KEY::COMPONENT_KEY_APP, this, C_STR("print"), (ComponentFnPtr)&PHApp::print);
255  bridge->registerMemberFunction(COMPONENT_KEY::COMPONENT_KEY_APP, this, C_STR("list"), (ComponentFnPtr)&PHApp::list);
256  bridge->registerMemberFunction(COMPONENT_KEY::COMPONENT_KEY_APP, this, C_STR("printRegisters"), (ComponentFnPtr)&PHApp::printRegisters);
257  return E_OK;
258 }
259 
260 short PHApp::onWarning(short code)
261 {
262  Log.warning(F("* App:onWarning - code=%d" CR), code);
263  if (statusLight_0)
264  {
265  statusLight_0->setBlink(true);
266  }
269 
270  return E_OK;
271 }
272 short PHApp::onRun(short code)
273 {
276  return E_OK;
277 }
278 short PHApp::onError(short id, short code)
279 {
280  if (code == getLastError())
281  {
282  return code;
283  }
284 
285  Log.error(F("* App:onError - component=%d (%s) code=%d" CR), byId(id)->name.c_str(), id, code);
286  switch (code)
287  {
288  case E_VFD_TIMEOUT:
289  case E_PID_TIMEOUT:
290  {
291  Log.errorln("App::onError Timeout %d", id);
292  break;
293  }
294  case E_FEED_OVERLOAD:
295  case E_VFD_OVERLOAD:
296  {
297  Log.errorln("App::onError Overload %d", id);
298  break;
299  }
300 
301  default:
302  break;
303  }
304 
309  setLastError(code);
310  return code;
311 }
312 short PHApp::onStop(short val)
313 {
314  Log.verboseln(F("* App:onStop - " CR));
317 }
318 
320 {
321  Log.verboseln(F("* App:clearError - " CR));
327 }
328 
330 {
331 
332 #ifdef HAS_FEED_SERVO
333  if (!extruderFeed)
334  {
335  return E_INVALID_PARAMETERS;
336  }
337 
338  if (extruderFeed->isOverloaded())
339  {
340  extruderFeed->speed(0);
341  if (omronVFD)
342  {
343  omronVFD->stop();
344  }
346  return E_FEED_OVERLOAD;
347  }
348 
349 #if defined(MB_W_FEED_VFD_RATIO) && defined(MB_RW_FEED_VFD_DEFAULT_SPEED_RATIO)
350  OmronVFDState *state = omronVFD->getVFDState();
351  if (omronVFD->direction != OmronVFD::E_VFD_DIR::E_VFD_DIR_FORWARD)
352  {
353  extruderFeed->speed(0);
354  return E_OK;
355  }
356  int netRatio = modbusBridge->mb->R[MB_W_FEED_VFD_RATIO];
357  int vfdState = state->state;
358  int vfdSpeed = state->FC;
359  int t0 = ((OMRON_VFD_MAX_FREQ * 100 / netRatio) / 100);
360  int t1 = t0 * STEPPER_MAX_SPEED_0 / 100;
361  int newSpeed = abs(t1 * vfdSpeed / 100);
362  switch (vfdState)
363  {
364  case OMRON_STATE_RUNNING:
367  {
368  extruderFeed->speed(newSpeed);
369  break;
370  }
371  default:
372  extruderFeed->speed(0);
373  break;
374  }
375 #endif
376 #endif
377 }
379 {
380  if (!modbusBridge)
381  {
382  return E_OK;
383  }
384  Mudbus *mb = modbusBridge->mb;
385 
386  mb->R[MB_R_SYSTEM_ERROR] = getLastError();
388  {
389  printRegisters();
390  mb->R[MB_R_APP_STATE_REG] = 0;
391  }
393  {
394  modbusBridge->print();
395  mb->R[MB_R_APP_STATE_REG] = 0;
396  }
398  {
399  printMemory();
400  mb->R[MB_R_APP_STATE_REG] = 0;
401  }
403  {
404  omronVFD->getVFDState()->print();
405  mb->R[MB_R_APP_STATE_REG] = 0;
406  }
408  {
409  mb->R[MB_R_APP_STATE_REG] = 0;
410  pids->printStates();
411  }
412  if (mb->R[MB_W_RESET_REG] == 1)
413  {
414  reset();
415  }
416  return E_OK;
417 }
418 short PHApp::loop()
419 {
420  App::loop();
422  loopModbus();
423  return E_OK;
424 }
425 short PHApp::getAppState(short val)
426 {
427  return E_OK;
428 }
MB_MONITORING_STATUS_FEEDBACK_0
#define MB_MONITORING_STATUS_FEEDBACK_0
Definition: enums.h:261
PHApp::list
virtual short list(short val0, short val1)
Definition: PHApp.cpp:96
MB_RELAY_0_DEFAULT
#define MB_RELAY_0_DEFAULT
Definition: config.h:144
MB_STEPPER_FEEDBACK_0
#define MB_STEPPER_FEEDBACK_0
Definition: config.h:196
MB_STEPPER_ENABLED_0
#define MB_STEPPER_ENABLED_0
Definition: config.h:195
MB_R_SYSTEM_CMD_PRINT_MEMORY
#define MB_R_SYSTEM_CMD_PRINT_MEMORY
Definition: enums.h:204
MB_R_SWITCH_0
#define MB_R_SWITCH_0
Definition: enums.h:239
features.h
MB_R_RELAY_1
#define MB_R_RELAY_1
Definition: enums.h:215
MB_R_APP_STATE_REG
#define MB_R_APP_STATE_REG
Definition: enums.h:156
PHApp::extruderFeed
StepperController * extruderFeed
Definition: PHApp.h:89
PHApp::setExtruderFeed
void setExtruderFeed(StepperController *feed)
Definition: PHApp.h:90
MB_ANALOG_3POS_SWITCH_0
#define MB_ANALOG_3POS_SWITCH_0
Definition: config.h:174
PHApp::onWarning
short onWarning(short code)
Definition: PHApp.cpp:260
MB_STEPPER_OVERLOAD_0
#define MB_STEPPER_OVERLOAD_0
Definition: config.h:194
StatusLight::setBlink
void setBlink(bool blink)
Definition: StatusLight.h:37
PHApp::clearError
short clearError()
Definition: PHApp.cpp:319
PHApp::mLoad
MotorLoad * mLoad
Definition: PHApp.h:85
OmronPID
Definition: OmronPID.h:108
config_adv.h
printMemory
void printMemory()
Definition: debug_utils.cpp:6
MB_R_SYSTEM_ERROR
#define MB_R_SYSTEM_ERROR
Definition: enums.h:140
ModbusBridge
Definition: ModbusBridge.h:107
mac
static uint8_t mac[]
Definition: config.h:61
OmronVFD::stop
uint16_t stop()
Definition: OmronVFD.cpp:76
OmronVFDState::FC
uint16_t FC
Definition: OmronVFD.h:60
PHApp::pids
OmronPID * pids
Definition: PHApp.h:87
PHApp::loopModbus
short loopModbus()
Definition: PHApp.cpp:378
OmronVFD::direction
E_VFD_DIR direction
Definition: OmronVFD.h:207
MB_RW_FEED_VFD_DEFAULT_SPEED_RATIO
#define MB_RW_FEED_VFD_DEFAULT_SPEED_RATIO
Definition: config.h:206
MB_ANALOG_1
#define MB_ANALOG_1
Definition: config.h:158
E_VFD_OVERLOAD
#define E_VFD_OVERLOAD
Definition: enums.h:27
ModbusBridge::print
void print()
Definition: ModbusBridge.cpp:273
PHApp::reset
short reset()
Definition: PHApp.cpp:84
PHApp::pot_1
POT * pot_1
Definition: PHApp.h:63
STATUS_ERROR_BLINK
#define STATUS_ERROR_BLINK
Definition: PHApp.h:151
StatusLight.h
PHApp::_error
short _error
Definition: PHApp.h:102
STATUS_WARNING_OFF
#define STATUS_WARNING_OFF
Definition: PHApp.h:167
ADD_RELAY
#define ADD_RELAY(relayNum, relayPin, relayKey, relayRegister)
Definition: PHApp.cpp:30
OMRON_PID_SLAVE_START
#define OMRON_PID_SLAVE_START
Definition: config.h:98
COMPONENT_KEY_MB_RELAY_1
@ COMPONENT_KEY_MB_RELAY_1
Definition: enums.h:57
PHApp::omronVFD
OmronVFD * omronVFD
Definition: PHApp.h:86
ip
static uint8_t ip[]
Definition: config.h:62
STATUS_WARNING_BLINK
#define STATUS_WARNING_BLINK
Definition: PHApp.h:140
OmronVFD::dir
Pos3Analog * dir
Definition: OmronVFD.h:197
STATUS_ERROR_PIN
#define STATUS_ERROR_PIN
Definition: config.h:45
COMPONENT_KEY_MB_ANALOG_3POS_SWITCH_0
@ COMPONENT_KEY_MB_ANALOG_3POS_SWITCH_0
Definition: enums.h:62
PHApp::printRegisters
void printRegisters()
Definition: PHApp.cpp:56
PHApp::setup
virtual short setup()
Definition: PHApp.cpp:106
MB_R_SYSTEM_CMD_PRINT_VFD
#define MB_R_SYSTEM_CMD_PRINT_VFD
Definition: enums.h:205
COMPONENT_KEY_MB_ANALOG_3POS_SWITCH_1
@ COMPONENT_KEY_MB_ANALOG_3POS_SWITCH_1
Definition: enums.h:63
OMRON_STATE_ACCELERATING
#define OMRON_STATE_ACCELERATING
Definition: enums.h:271
ModbusBridge::mb
Mudbus * mb
Definition: ModbusBridge.h:166
MB_R_VFD_LOAD
#define MB_R_VFD_LOAD
Definition: enums.h:144
COMPONENT_KEY_FEEDBACK_0
@ COMPONENT_KEY_FEEDBACK_0
Definition: enums.h:66
MB_RELAY_1
#define MB_RELAY_1
Definition: config.h:135
E_VFD_TIMEOUT
#define E_VFD_TIMEOUT
Definition: enums.h:28
PHApp::getLastError
short getLastError()
Definition: PHApp.h:103
PHApp::com_serial
SerialMessage * com_serial
Definition: PHApp.h:61
OmronVFD
Definition: OmronVFD.h:83
PHApp::loop
short loop()
Definition: PHApp.cpp:418
COMPONENT_KEY_STEPPER_0
@ COMPONENT_KEY_STEPPER_0
Definition: enums.h:64
OmronVFD::owner
PHApp * owner
Definition: OmronVFD.h:200
OmronVFDState
Definition: OmronVFD.h:29
STATUS_WARNING_PIN
#define STATUS_WARNING_PIN
Definition: config.h:44
COMPONENT_KEY_MB_RELAY_0
@ COMPONENT_KEY_MB_RELAY_0
Definition: enums.h:56
MB_STEPPER_PULSE_0
#define MB_STEPPER_PULSE_0
Definition: config.h:193
E_FEED_OVERLOAD
#define E_FEED_OVERLOAD
Definition: enums.h:37
STEPPER_DEFAULT_SPEED_0
#define STEPPER_DEFAULT_SPEED_0
Definition: config_adv.h:129
ModbusBridge::getMudbus
Mudbus * getMudbus()
Definition: ModbusBridge.h:167
PHApp::print
short print(short arg1, short arg2)
Definition: PHApp.cpp:45
OmronVFDState::state
int16_t state
Definition: OmronVFD.h:65
ModbusBridge.h
OmronVFDState::print
void print()
Definition: OmronVFD.h:76
Relay::set
short set(int val)
Definition: Relay.h:61
MB_R_SYSTEM_CMD_PRINT_QUEUE
#define MB_R_SYSTEM_CMD_PRINT_QUEUE
Definition: enums.h:203
STATUS_ERROR_BLINK_OFF
#define STATUS_ERROR_BLINK_OFF
Definition: PHApp.h:156
OmronVFD::getVFDState
OmronVFDState * getVFDState()
Definition: OmronVFD.h:201
MB_ANALOG_3POS_SWITCH_1
#define MB_ANALOG_3POS_SWITCH_1
Definition: config.h:175
COMPONENT_KEY_MB_ANALOG_0
@ COMPONENT_KEY_MB_ANALOG_0
Definition: enums.h:59
StatusLight
Definition: StatusLight.h:16
PHApp::onError
short onError(short id, short code)
Definition: PHApp.cpp:278
MB_ANALOG_3POS_SWITCH_2
#define MB_ANALOG_3POS_SWITCH_2
Definition: config.h:176
STATUS_ERROR_ON
#define STATUS_ERROR_ON
Definition: PHApp.h:172
PHApp::relay_0
Relay * relay_0
Definition: PHApp.h:66
COMPONENT_KEY_MB_ANALOG_1
@ COMPONENT_KEY_MB_ANALOG_1
Definition: enums.h:60
MB_W_FEED_VFD_RATIO
#define MB_W_FEED_VFD_RATIO
Definition: enums.h:163
SERIAL_BAUD_RATE
#define SERIAL_BAUD_RATE
Serial port baud rate.
Definition: config.h:52
MB_R_SYSTEM_CMD_PRINT_PIDS
#define MB_R_SYSTEM_CMD_PRINT_PIDS
Definition: enums.h:206
STEPPER_DEFAULT_DIR_0
#define STEPPER_DEFAULT_DIR_0
Definition: config_adv.h:130
PHApp::getAppState
short getAppState(short val)
Definition: PHApp.cpp:425
MB_ANALOG_3POS_SWITCH_3
#define MB_ANALOG_3POS_SWITCH_3
Definition: config.h:177
MB_R_ANALOG_1
#define MB_R_ANALOG_1
Definition: enums.h:230
PHApp::pos3Analog_1
Pos3Analog * pos3Analog_1
Definition: PHApp.h:76
MB_R_ANALOG_0
#define MB_R_ANALOG_0
Definition: enums.h:229
PHApp::_state
short _state
Definition: PHApp.h:100
COMPONENT_KEY_APP
@ COMPONENT_KEY_APP
Definition: enums.h:45
Relay.h
PHApp::stepperController_0
StepperController * stepperController_0
Definition: PHApp.h:78
PHApp::statusLight_1
StatusLight * statusLight_1
Definition: PHApp.h:82
STATUS_WARNING_ON
#define STATUS_WARNING_ON
Definition: PHApp.h:162
OmronVFD::speed
POT * speed
Definition: OmronVFD.h:195
E_OK
#define E_OK
Definition: enums.h:11
PHApp::onStop
short onStop(short code=0)
Definition: PHApp.cpp:312
StepperController::isOverloaded
bool isOverloaded()
Definition: StepperController.h:158
enums.h
COMPONENT_KEY_FEEDBACK_1
@ COMPONENT_KEY_FEEDBACK_1
Definition: enums.h:67
MOTOR_LOAD_PIN
#define MOTOR_LOAD_PIN
Definition: config.h:80
OMRON_VFD_MAX_FREQ
#define OMRON_VFD_MAX_FREQ
Definition: config.h:115
MB_R_RELAY_0
#define MB_R_RELAY_0
Definition: enums.h:214
debug_utils.h
OmronPID::printStates
void printStates()
Definition: OmronPID.cpp:189
MB_R_SYSTEM_CMD_PRINT_REGS
#define MB_R_SYSTEM_CMD_PRINT_REGS
Definition: enums.h:202
OMRON_STATE_DECELERATING
#define OMRON_STATE_DECELERATING
Definition: enums.h:272
config.h
PHApp::onRegisterMethods
virtual short onRegisterMethods(Bridge *bridge)
Definition: PHApp.cpp:251
gateway
static uint8_t gateway[]
Definition: config.h:63
PHApp::statusLight_0
StatusLight * statusLight_0
Definition: PHApp.h:81
OMRON_STATE_RUNNING
#define OMRON_STATE_RUNNING
Definition: enums.h:273
STEPPER_PULSE_WIDTH_0
#define STEPPER_PULSE_WIDTH_0
Definition: config_adv.h:131
MB_RELAY_1_DEFAULT
#define MB_RELAY_1_DEFAULT
Definition: config.h:145
MB_ANALOG_0
#define MB_ANALOG_0
Definition: config.h:157
STATUS_ERROR_OFF
#define STATUS_ERROR_OFF
Definition: PHApp.h:177
PHApp.h
COMPONENT_KEY_VFD_LOAD
@ COMPONENT_KEY_VFD_LOAD
Definition: enums.h:55
StepperController::speed
short speed(short val0, short val1=0)
Definition: StepperController.h:77
MB_R_SWITCH_1
#define MB_R_SWITCH_1
Definition: enums.h:240
StepperController
Definition: StepperController.h:19
MB_STEPPER_DIR_0
#define MB_STEPPER_DIR_0
Definition: config.h:192
STEPPER_MAX_SPEED_0
#define STEPPER_MAX_SPEED_0
Definition: config_adv.h:127
PHApp::onRun
short onRun(short code=0)
Definition: PHApp.cpp:272
PHApp::setLastError
short setLastError(short val=0)
Definition: PHApp.h:107
MB_MONITORING_STATUS_FEEDBACK_1
#define MB_MONITORING_STATUS_FEEDBACK_1
Definition: enums.h:262
MB_RW_STEPPER_SPEED_0
#define MB_RW_STEPPER_SPEED_0
Definition: enums.h:250
3PosAnalog.h
subnet
static uint8_t subnet[]
Definition: config.h:64
OmronVFD::mode
Pos3Analog * mode
Definition: OmronVFD.h:196
MB_W_RESET_REG
#define MB_W_RESET_REG
Definition: enums.h:155
STATUS_WARNING_BLINK_OFF
#define STATUS_WARNING_BLINK_OFF
Definition: PHApp.h:145
PHApp::pos3Analog_0
Pos3Analog * pos3Analog_0
Definition: PHApp.h:75
PHApp::modbusBridge
ModbusBridge * modbusBridge
Definition: PHApp.h:84
OmronVFD::motorLoad
MotorLoad * motorLoad
Definition: OmronVFD.h:198
MB_RELAY_0
#define MB_RELAY_0
Definition: config.h:134
PHApp::relay_1
Relay * relay_1
Definition: PHApp.h:67
OMRON_MX2_SLAVE_ID
#define OMRON_MX2_SLAVE_ID
Definition: config.h:108
MotorLoad
Definition: MotorLoad.h:15
PHApp::loopExtruderFeed
short loopExtruderFeed()
Definition: PHApp.cpp:329
ADD_POS3ANALOG
#define ADD_POS3ANALOG(posNum, switchPin1, switchPin2, switchKey, switchRegister)
Definition: PHApp.cpp:40
E_PID_TIMEOUT
#define E_PID_TIMEOUT
Definition: enums.h:33
ADD_POT
#define ADD_POT(potNum, potPin, potKey, potRegister)
Definition: PHApp.cpp:35