The following example shows a real code sequence fragment used in a Plant
Link S.L. Engine Module Tester. Comments are in green.
|
SystemReset() |
SCP_SetNode(F0) |
SCP_SetBaudeRate(2) |
Set_PLS145V(13.8,500) |
Wait(200) |
Set_Loads(J1-20:VPWR;J1-39:GND)
|
Set_PLS145V(13.8,3000) |
Wait(500) |
SetVoltOut(J1-92,0.9) |
SCP_Send&ReceivMsg(300,641001,MSG0) |
Display_Test(#1,Input Capture J1-92,MSG0,01,05) |
Measure_Volt(J1-20,Float0) |
Display_Test(#2,J1-92 OFF,Float0,13.5,13.8) |
SCP_SendMsg(6410240F235630) |
Wait(100) |
Measure_Volt(J1-20,Float0) |
Display_Test(#3,J1-92 Saturation,Float0,0,0.55) |
Set_PLS145V(0,0) |
Wait(500) |
Set_Loads(0) |
End() |
|