[Solved] Loco leaves in the wrong direction after r4439

Moderator: Moderators

[Solved] Loco leaves in the wrong direction after r4439

Postby lucianopasian56 » 13.02.2013, 23:19

Hi everybody.

I have a problem that arose after (more or less) version 4439; i.e. everything works with version 4439.
If I try to install a later version (the last that I tried is 4652) it doesn't.

The problem is with the automatic method, I use scheduling, side route, second next block and commuter trains.
It happens that locos take the wrong direction leaving blocks after a stop or at the first start.
To add more confusion, if the schedule provide more blocks before reaching the final destination two
situations may happen:
1) if the loco may run without interruption, it reaches the final destination.
2) if the loco have to wait in a blocks (for example because an intermediate block is used by another train) when the route
will become free, the loco take the wrong direction.

Attached there is a simplified plan (Schedules.xml) where I left only one schedule, this one:
<sclist>
<sc id="Lok6_1_T52or-L3or-L2or-E3_T6" prev_id="Lok6_1_T52or-L3or-L2or-E3_T6" timeframe="1" timeprocessing="0" fromhour="0" tohour="0" cycles="0" scaction="Lok6_1a_E3an-T6">
<scentry block="Testa52" hour="0" minute="0" swap="false" free2go="false" indelay="0" location=""/>
<scentry block="BL3" hour="0" minute="0" swap="false" free2go="false" indelay="0" location=""/>
<scentry block="BL2" hour="0" minute="0" swap="false" free2go="false" indelay="0" location=""/>
<scentry block="BE3" hour="0" minute="0" swap="false" free2go="false" indelay="0"/>
</sc>
<sc id="Lok6_1a_E3an-T6" prev_id="Lok6_1a_E3an-T6" timeframe="1" timeprocessing="0" fromhour="0" tohour="0" cycles="0" scaction="Lok6_1end_T6">
<scentry block="BE3" hour="0" minute="0" swap="false" free2go="false" indelay="0"/>
<scentry block="Testa6" hour="0" minute="0" swap="false" free2go="false" indelay="0" location=""/>
</sc>
<sc id="Lok6_1end_T6" prev_id="Lok6_1end_T6" timeframe="1" timeprocessing="0" fromhour="0" tohour="0" cycles="0" scaction="">
<scentry block="Testa6" hour="0" minute="0" swap="false" free2go="false" indelay="0" location=""/>
</sc>
</sclist>

Testa52 is a terminal block (not declared as terminal, but it doesn't change anything...).
1) Loco is placed on Testa52 as entering forwards from (+) side; so it has to leave backwards.
The only way to make this happens is to place the loco as entering backwards from the (-) side; this is wrong, but let's leave it...
If all blocks are free (BL3,BL2,BE3 and the crossing BLA)The loco reaches block E3 and stops as expected. After a short wait, it should leave
forwards BE3 from (-) side towards Testa6. It doesn't: the route is correctly allocated but the loco starts backwards.
2) If you put another loco , let's say in BL2, before starting the schedule, the loco leaves Test52 and stops in BL3, waiting for
the BL2 becoming free. When you remove the loco from BL2, the routes towards BE3 are correctly allocated but the loco leaves BL3
forwards (!) i.e. in the wrong direction. Note that in case 1, without the stop, the BL3 block has been left correctly.

Since this problem started with something that changed after version 4439 I wonder: what changed that involves placing and
direction?
Thank you for any help.
You do not have the required permissions to view the files attached to this post.
lucianopasian56
 

Update

Postby lucianopasian56 » 20.02.2013, 15:19

No answers? :cry:
Nevertheless, I try adding more info.
Attached there are:
1_ the complete plan file
2_ and the trace rocrail.000ok.trc that i got whit the 4439 software version (that works)
3_ and the rocrail.000wrong.trc that I got whit the 4702 software version (this doesn't work)

The two traces where obtained with the same procedure.
Looking in both traces you can find the start with the schedule :

<lc id="52. Br86 345" cmd="useschedule" scheduleid="TestLok6_1_T52or-L3or-L2or-E3_T6" server="infw0283D944"/>

With the 4439 the resulting command is "backwards", with the 4702 is "forwards" which is wrong
You do not have the required permissions to view the files attached to this post.
lucianopasian56
 

Postby rjversluis » 20.02.2013, 17:55

Hi,

in the OK trace there is a swap:
Code: Select all
20130218.212622.468 r9999a 00000E5C OLcDrive 0091 checkScheduleEntryActions...
20130218.212622.468 r9999a 00000E5C OLcDrive 0137 Setting state for "52. Br86 345" from LC_FINDDEST to LC_INITDEST.
20130218.212622.578 r9999a 52. Br86 OLoc     1338 swap event 4000 ms

**** 4000ms sleep and swap *****

20130218.212626.687 r9999a 00000E5C OLcDrive 0064 loco direction for [52. Br86 345] is [forwards], route direction [fromTo], swappost[false]
20130218.212627.937 r9999a 52. Br86 OLoc     2129 <lc dir="true" V="0"/>
20130218.212627.937 r9999a 52. Br86 OLoc     1189 Sending command...V=0
20130218.212627.937 r9999c 00000E5C OMCS2    0322 loc 52 (dcc) speedstep=0 backwards


in the second trace there is also a swap but 4000ms after 212302.593 which would be at 212306.593 but by that time the loco already runs:
Code: Select all
20130218.212302.484 r9999a 00000DA8 OLcDrive 0094 checkScheduleEntryActions...
20130218.212302.484 r9999a 00000DA8 OLcDrive 0140 Setting state for "52. Br86 345" from LC_FINDDEST to LC_INITDEST.
20130218.212302.593 r9999a 52. Br86 OLoc     1332 loc evttimer 4000 ms
20130218.212302.593 r9999a 52. Br86 OLoc     1334 timed event[114] 4000 ms
20130218.212302.593 r9999a 00000DA8 OLcDrive 0064 loco direction for [52. Br86 345] is [forwards], route direction [fromTo], swappost[false]
20130218.212303.843 r9999a 52. Br86 OLoc     2247 <lc dir="true" V="0"/>
20130218.212303.843 r9999a 52. Br86 OLoc     1196 Sending command...V=0
20130218.212303.843 r9999c 00000DA8 OMCS2    0324 loc 52 (dcc) forwards

running...

20130218.212306.593 ***** SWAP *****


Just remove the swap event timer.
Timed events are async in newer Rocrail revisions!
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Postby lucianopasian56 » 21.02.2013, 20:12

Yes! thank you Rjversluis :D
I had many locos with the timer set on swap: setting the timer to 0 solved the problem.

Is there a documentation about how timed events work?
I have a lot of timed actions at the end of schedules and now, with the new rocrail version, event are no more aligned and timer need to be tuned.
Thanks again.
Luciano
lucianopasian56
 

Postby lucianopasian56 » 23.02.2013, 10:43

:o now I found the info:

Date: 20-01-2013
Revision: 4562+
Pages: Function timer Function timer resolution is changed from seconds to 100ms.

That's why my actions are no more aligned!
lucianopasian56
 


Return to Automatic mode