Execue Standard Macro
Posted: Wed 29. Mar 2017, 10:23
Hi
I made a standard macro as below. I will have to execute it when I arrive in field. I don't have any device to test it before going to business trip. So, I want to debug my script and want to know how to execute it when my PC is connected to the engine controller.
Could you guide me?
I made a standard macro as below. I will have to execute it when I arrive in field. I don't have any device to test it before going to business trip. So, I want to debug my script and want to know how to execute it when my PC is connected to the engine controller.
Could you guide me?
Code: Select all
// PCAN-Explorer Macro File
// First edited: 3/27/2017 2:43:52 PM
FormatVersion=5.0
ClearQueue
StartTrace
Send 1 1887FE02h 8 0Dh 04h 00h FFh FAh 03h 00h 00h //send ESC = "fueling desired"
wait 1000
Monitor : WaitData 0 1 18FCC800h 8 ****01**b **h **h **h **h **h **h **h //monitor EEC13
If True
Goto StopRequest
Send //send ESC = "fueling desired"
wait 1000
Goto Monitor
StopRequest : PrintToOutputWindow "Engine is Capable"
Send 1 1887FE02h 8 0Ch 04h 00h FFh 00h 03h 04 00hh //send ESC to request engine to be stoppped
Send // send ENGSC
Wait 3000
WaitData 1 18F00400h 8 **h **h **h 00h 00h **h **h **h//monitor engine speed =0
If True
Goto RestartRequest
Goto StopRequest
RestartRequest : PrintToOutputWindow "Engine is Stopped"
Wait 15000
send 1 1887FE02h 8 0Dh 04h 00h FFh FAh 03h 00h 00h // send ESC
send 1 10F0ED02h 8 EEh FCh 00h 00h 00h 00h 00h 00h// send ENGSC
WaitData 1 18F00400h 8 **h **h **h 00h 00h **h **h **h // monitor engine speed=0
If False
Goto Finalize
Goto RestartRequest
Finalize : PrintToOutputWindow "Engine is Restarted"
StopTrace
Stop