Keyboard Shortcuts
Likes
Search
Locked Turntable
Hi. Please can someone help.I have a few issues.. 2) Once created I cannot seem to delete turnouts, sensors or signal heads.? |
Tackling some of the more obvious issues, in the reverse order.
Please update to JMRI version 4.10. It is difficult to sift through problems with outdated versions, and 4.10 had several issues we would rather not have to revisit. Also, check to see that your Java is up to date.
Either open the JMRI System Console using the menu item Help -> System Console... and tell us what error messages you are seeing, or better, open the file named "session.log" found in your JMRI\log folder and copy that text at the end of your next response.
This may require further investigation, but the information in the error messages may provide a lot of clues.
Saving the most difficult to analyze via long-distance until we get most of the other noise out of the log and can get a cleaner description of the context. Cliff in Baja SoCal |
toggle quoted message
Show quoted text
|
Brilliant! After upgrading to 4.12 I don't get error messages and Ican delete unneeded turnouts and signal heads.?
Thanks for that. I'm still having turntable issues. Essentially, I can't get the turntable turnouts of any previously selected ray to revert when a new ray is selected.? It's quite possible I haven't set it up correctly the window help is unclear and for a previous version. This is what I did in the order I did it.:
This should be a pic. - I've never tried this before. I have tried setting up routes to close? turnouts on remaining 3 rays if any individual ray is clicked, but this just rotates the turntable icon. ? Any ideas? Thanks in anticipation. |
Without any DCC++ hands-on experience, and very limited DCC Turntable experience, not all of what you wrote makes it through to me. Can you watch the JMRI System console and the DCC++ Traffic Monitor with both the "Show raw data" and the "Show timestamps" turned on? Even better, use the "Choose log file ..." and "Start logging ..." features. Together, these should give you a better idea as to what the DCC++ is trying to do or not do with each of the actions you describe. With that kind of information, you should be able to narrow the investigation focus. There are ways to turn on more Debug logging messages to the JMRI System console window, but someone with more DCC++ experience will need to help out. My experiences with verbose LocoNet chatter will not help you in the slightest. By the way, you can also upload images and files to this groups.io account and avoid sharing the strange adds, . It may be necessary for you to upload your panel .xml file for someone to dig into what you have done, but hold that thought until you get someone else to help here. |
I believe what your experiencing with the turntable in JMRI is expected behaviour (intentional or not). I have a turntable on my layout panel but no physical equivalent as yet. I find the same thing with the turnouts. From experimentation I have discovered the JMRI TT operates by change of state not by the turnout getting thrown. I found a turntable hack in the JMRI files section that uses logix to close all turnouts on the turntable when a road is selected and throw the relevant one
(?/g/jmriusers/files/ProblemsBeingWorkedOn/WaltsStuff/JRMI%20tricks/TurntableHackWalt.xml?). I don't know if this behaviour is intentional or not. Neither do I know what effect closing the turnouts at once will have on the DCC operated turntable hope this helps John |
¿ªÔÆÌåÓýI built a turntable using JMRI. The interface to the layout is an SMINI using CMRI boards. I use all turnouts and routes to control it, not the TT built into JMRI.?I will be at the NMRA next week and will cover it along with other devices in ?Clinic on JMRI and CMRI. If you are going to be there look me up.? Jim
|
Hi. Thanks for the heads up.
I'm still near the bottom of the learning curve and I think I need to grasp some more basic principles before getting into logix. I may revert to the non-DCC layout panel? turntable and place internal sensors on the ray points and? sort it out using routes.? I would be interested to know what you mean by '..,change of state'? rather than the 'turnout getting thrown'. How does the instruction to change state get onto the DCC bus? a CV code change?? If I can work out how to 'import ' the XML file I'll give the Turntable hack a try as you suggest. Many Thanks.? |
Thanks Cliff. I seem to have lost my reply in the ether. I will try as you suggest and see if I can track down what's happening. The strange behaviour seems to be unrelated to DCC++ as it can be demonstrated within JMRI.? Turntables are created in the same way as crossover turnouts, but for each turnout, once thrown it can't be closed. It's doing something as the icon changes but the status of each turnout in the turnout table stays the same, irrespective of the turntable position. |
Thanks James.
I would love to visit NMRA. Unfortunately Kansas is several thousands of miles away from me here in the UK, and unlike Dorothy,? I don't have a pair of sparkly red? shoes to click heels together ;)? I've never considered CMRI, I will have to find out more. Good luck with your clinic! Cheers Steve |
Hi Steve By change of state I mean it operates the turntable either by the relevant turnout being thrown (from closed position) or closed (from thrown position). I would imagine that the same code is sent from JMRI to the DCC. ( I checked this on my NCE log and the same message gets sent out - I have an NCE system attached to JMRI) You can see?
how it works if you first click on a turnout to move from closed to thrown and the turntable will moves to the respective spur. Click on a second turnout to move from closed to thrown and the turntable should move to a different spur. Now click on the original turnout to move from thrown to closed. The turntable will move back to the original spur. However if you use the turntable ray to move the turntable the turnout gets set to the thrown position. subsequent selection of the same ray doesn't change the turnout. It does however send the correct commands to DCC. A bit confusing i know It really depends on how you are going to use the turntable. If you are manually changing to a different track by clicking on the ray,? it probably doesn't matter what state the turnout is in as they don't exist on your layout. It will only matter if your using the turntable in a transit or route. If you need the turnouts to work sensors then logix is the easiest and cleanest way In terms of importing the turntable hack you will need to download it from the site. It is a panel in it's own right and can be opened from within panelpro Happy to help further if you need. I'm afraid I have spent some time getting my turntable to work in a virtual environment and so have come across some of the quirks BTW where in the UK are you? John On Wed, 1 Aug 2018 at 00:55, bluetobits <steve.lomax@...> wrote: Thanks James. |
Hi Steve
A postscript. I have just realised the reason for the behaviour of the turnouts as result of me thinking about your issue along with what I am doing. I looked a bit closer at the NCE log When the turnout is thrown (from closed)? the command is sent to move the turntable in the reverse direction to the ray. When the turnout is closed (from thrown) the command is sent to move the turntable in the normal direction to the ray. At least that is what the NCE simulator is doing. Looks like I will need to do a bit more digging when I come to build my turntable |
I've found a workaround that seems to work. I'm sure there's a better way, but I'm still learning!
It may be specific to my hardware, but this is what I've done. System Hardware: I'm using a DCC++ base station (Mega 2560 Arduino and motor shield) . JMRI allows the DCC++ Arduino's? abundant output pins to be mapped to turnouts, sensors and lighting.? I built my own 50mm diameter turntable (3d printed)? for my 009 mining layout. It is stepper motor controlled using one of he cheap geared motors and an Arduino. The stepper motor moves the head of the turntable to each of the 4 rays.?Photos??I've made a few changes so some of the panels don't relate exactly to the model. I will be tidying it all up and improving the appearance once the issues are sorted,? The servo motor in the photos lifts a couple of Neodymium magnets that stops a gravity run truck on the turntable and then lowers to release the truck to? continues down the correct siding.? Four momentary push buttons allow manual selection of the desired ray. The hardware panel push buttons are at each ray of the turntable but are under the printed plastic sheet . I connected 4 DCC++ arduino? pins, configured as turnouts in parallel with the manual switches. I am using pull-up resistors so a signal that is +5v (high) is "off" and a grounded signal 0v (low) is "on"., so both the DCC signal and the manual pushbuttons can live happily together without shorting. The Arduino mini controlling the turntable needs a momentary 0v to trigger a move to a new position (I also have a turn knob for calibrating the positions) so that just leaves the JMRI bit: JMRI: I set up 4 internal sensors STT1, STT2, STT3 and STT4? from the sensor table and 4 external turnouts for the turntable rays TTT1, TTT2, TTT3, TTT4. I attached these turnouts to DCC++ arduino pins so that "closed" puts High (5V) and? "thrown" puts Low (0V)? on each pin. (Configure base station on the DCC++ menu on the main Panel Pro window.) (Each pin connects to the TT arduino mini along with the respective manual ray switch.) I placed a turntable on the layout panel ensuring to uncheck the DCC turntable box I placed a sensor on each raypoint and made them all momentary. I then created a route RTT1 triggered by sensor STT1 "active" to set TTT1 to "thrown".? A second route RTT1rel (release) triggered by STT1 "Inactive" sets TTT1 to "closed". I repeated this process for the remaining 3 turntable rays creating a set and release route for each sensor. Clicking the sensor sends a signal to the respective ray input on the Arduino. To get the turntable to animate on the layout panel, set up 4 dummy internal? turnouts from the and set the turntable to DCC attaching a dummy turnout to each ray. Ensure the sensor icon is over the control circle of each ray. clicking the sensor also triggers the turntable circle.?? If anyone would like diagrams, BOM, Arduino sketch (software), 3D files (.stl or sketchUp)? ?I would be very happy to post them here. I can even print out the plastic parts? if you cover my expenses, but it is only a 50mm turntable for 9mm peco setrack, and scaling it up won't work!? My total spend on the turntable has been around ?10 ( $15)? ?not including the DCC++ base station. @ John Wragg. : Wirral. where are you?. Steve |
Steve:
I think your design and execution of the turntable is great. I have built several specialized stepper and servo CNC machines for my business. I know the thought and effort it takes to do what you have done. I have never used an Arduino before due to power requirements. I especially like your method of lining up the tracks exactly every time automatically. I have been thinking about a turntable control system using steppers for years. Unlike me, you actually designed and built one! Bill Box |