[EthercatDevice_DmpLCD_Generic]
説明
指定された文字列を EtherCATスレーブデバイスのLCDディスプレイに出力します。

派生クラス:
クラス名 | 製造者ID | 製品コード |
EthercatDevice_QECR11UN01 | 0x00000bc3 | 0x0086d103 |
EthercatDevice_QECR00UN01 | 0x00000bc3 | 0x0086d100 |
構文
int lcdPrint(const char *fmt, …);
媒介変数
[in] const char *fmt
LCDディスプレイに印刷される文字列。これは出力のフォーマット仕様を含む NULLで終了する文字列へのポインタです。フォーマット文字列は Cのprintf 関数と同じフォーマットに従い、変数やフォーマットオプションを挿入できます。[in] …
これは、fmt文字列の書式指定子に従ってフォーマットされた文字列に挿入される可変個引数です。
戻り値
error codeを戻します。 error codeを示します。返された値が 0の場合、この関数が正常に完了したことを示します。
備考
この関数は、 EthercatMaster::begin()
が正常に実行された後に呼び出す必要があります。この関数はブロッキングされていないため、循環コールバック内で呼び出すことができます。
例
#include "Ethercat.h" EthercatMaster master; EthercatDevice_QECR00UN01 slave; void CyclicCallback() { slave.update(); } void setup() { master.begin(); slave.attach(0, master); slave.lcdInit(ECAT_LCD_ILI9341_1); master.attachCyclicCallback(CyclicCallback); master.start(); slave.lcdPrint("Hello World!\n"); } void loop() { // ... }
Please see EthercatDevice_DmpLCD_Generic Class for more QEC Stepper Drivers instructions and API usage.