EthercatDevice_QECRXXHU.mpgSetCallback()

[EthercatDevice_QECRXXHU]

Description

Set the MPG event Callback function.

Class Modules

class EthercatDevice_QECR11HU5S;
/* MPG + Keypad + LCM + RS232x2, RJ45 power [1, 1] */
class EthercatDevice_QECR00HU5S;
/* MPG + Keypad + LCM + RS232x2, RJ45 power [0, 0] */
class EthercatDevice_QECR11HU9S;
/* MPG + Keypad + LCM + RS232/485x2, RJ45 power [1, 1] */
class EthercatDevice_QECR00HU9S;
/* MPG + Keypad + LCM + RS232/485x2, RJ45 power [0, 0] */

Format

int mpgSetCallback(void (*callback)(int));

Syntax

EthercatDevice_QECRXXHU slave;
void MpgCallback (int event) {}
slave.mpgSetCallback(MpgCallback);

Parameters

  • void (*callback)(int)
    • ECAT_MPG_AXIS_CHANGE
    • ECAT_MPG_RATIO_CHANGE
    • ECAT_MPG_EMERGENCY_STOP_CHANGE
    • ECAT_MPG_ENABLE_SWITCH_CHANGE
    • ECAT_MPG_ENCODER_CHANGE

Returns

Int: 0 for successful. If the return value is smaller than 0 means an error.


Libraries Reference Home

The text of the 86Duino reference is a modification of the Arduino reference and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.

Leave a Comment

Scroll to Top