I'm having issues getting the Rail Engine to work, and would greatly appreciate if anyone can help me understand what Im doing wrong.
To be clear, Im not having any issues with the rail developer. I am able to record, save, and load rails directly through the developer. My issue is getting my recorded rail to load through the engine, so I can loop the rail and get it to run automatically.
If Im understanding this correctly, I need to run a code snippet in conjunction with the rail engine code in order to parse the rail file name and get it to loop? The recorded rail is in c:\test.txt and Im using Windows 10.
This is the snippet that I am currently using:
set %railsubs tool_railengine30l.txt
call %railsubs TM_Initialize
set %railfilename test.txt
set %railname RAIL1
call %railsubs TM_LoadRail %railfilename
if #RESULT = #TRUE
{
display ok Rail file not found
stop
}
set #LPC 100
loop1:
call %railsubs TM_RunRail %railname 0 END FW ; finish running this rail from the present position to the end
if #RESULT = #TRUE
{
display ok Rail error occurred.
}
call %railsubs TM_RunRail %railname 0 END BW ; finish running this rail from the present position to the end
if #RESULT = #TRUE
{
display ok Rail error occurred.
}
goto loop1
call %railsubs TM_Close
stop
Nothing happens when I try and run this code, no error code or nothing. Same when I try and run the rail engine, nothing happens, but I do get a blank interface (attached picture).
Sorry if Im a noob but I would greatly appreciate if anyone can help me get this working.