to kewei
下圖為Kewei主PLC與servo之簡易測試程序 請挑出錯誤協助解決CAN測試
Line 1~2 setup the PLC as canbus master with 240Kbps, 10ms
Line 3~5 initialize memory D6000~D6002 that will transfer to servo
Line 6~8 initizlize memory D6003~D6005 to 0, which are used to receive data from servo
Line 9, wait X0 input to start the test
Line 10, move D6004(2'nd data received from servo) to D6001