AdvancedHMI Software

General Category => Support Questions => Topic started by: tylerinthetub on April 16, 2017, 03:12:31 PM

Title: SLC 5/02
Post by: tylerinthetub on April 16, 2017, 03:12:31 PM
Hello guys,

Trying to re-purpose a SLC 5/02 for a brewery project and am not having much luck getting communication.  I'm using the 1747-UIC cable, here are the settings I am using in RS Linx:

Device Name:  AB_DF1-1
Device:  1770-KF2/1785-KE/SCANport
Comm Port:3
Station Number: 0
Parity: None
Error Checking: CRC
Stop Bits: 1
Protocol:  Full Duplex

The UIC is set to output DH485 to the PLC

In AHMI I'm using the SerialDF1forPLC5, manually set the baud rate to 19200(also tried auto), changed it to com3, and left all other settings at default.

Set up a simple button to activate B3:0/1 and turn on an output light but nothing.

Any help would be much appreciated.




Title: Re: SLC 5/02
Post by: dmroeder on April 16, 2017, 05:18:32 PM
I've never attempted the setup that you have so I don't know for sure if it will work, but you will want to use the SerialDF1forSLCMicroCom driver, not the PLC5.  You will also want to make sure that RSLinx is fully shut down if it is on the machine.  Not just exit the GUI, but make sure it is shut down in the Windows task manager.
Title: Re: SLC 5/02
Post by: tylerinthetub on April 16, 2017, 06:38:54 PM
Tried the microcom driver without any luck, played with the baud rate and a few other things.
The PLC was still talking to RS links though, there's a green LED indicating it is connected to a USB driver, and DH485 light that flashes when it is communicating with the PLC.  Restated and made sure RSLinks didn't launch, but still no luck.
I tried toggling the IsPLC5 true and false as well but I'm not sure what it does.
Title: Re: SLC 5/02
Post by: Archie on April 16, 2017, 07:58:07 PM
Try setting EnableLogging to True, then run the application and see if it generates a log file in the same directory as the executable (\bin\Debug). If so, post that file here
Title: Re: SLC 5/02
Post by: bachphi on April 17, 2017, 07:14:07 AM
1. Goto Device Manager , verify that the UIC driver is properly installed and check what COM port it connected.
2. In RSLinx, remove or stop all existing serial drivers. Add DH485 UIC device driver - select COM port.
3. Go online with your rslogix software.
4. Once you verified being able connection online, then shutdown RSLinx
5.  try setup your AAHMI with SerialDF1for SLC driver
Title: Re: SLC 5/02
Post by: tylerinthetub on April 17, 2017, 01:10:42 PM
1. Goto Device Manager , verify that the UIC driver is properly installed and check what COM port it connected.
Yes, driver works fine connects on Com3
Quote
2. In RSLinx, remove or stop all existing serial drivers. Add DH485 UIC device driver - select COM port.
Done this, and restarted checked to make sure there is nothing booting on startup
Quote
3. Go online with your rslogix software.
Yup, goes online, downloads fine
Quote
4. Once you verified being able connection online, then shutdown RSLinx
Yes
Quote
5.  try setup your AAHMI with SerialDF1for SLC driver
I have a "SerialDF1forSLCMicroCom", "SerialDF1forPLC5Com", and "SerialDF1overTcpForSLCMicroCom".
Do you mean the "SerialDF1forSLCMicroCom"?


Try setting EnableLogging to True, then run the application and see if it generates a log file in the same directory as the executable (\bin\Debug). If so, post that file here

Not seeing anything in that directory.  Am going to try a few things here and will post settings and screen shots.
Title: Re: SLC 5/02
Post by: tylerinthetub on April 17, 2017, 01:58:16 PM
Alright here are the settings I'm using currently, tried a bunch but this was my starting point
(http://i.imgur.com/mkxFHM1.png)

I installed a com port monitor and when connecting with RSLINX

(http://i.imgur.com/dicraBe.png)

When trying to connect AHMI

(http://i.imgur.com/EEVmOYv.png)
nada, its not even attempting it.
Title: Re: SLC 5/02
Post by: Archie on April 17, 2017, 02:02:07 PM
Try to set to the correct baud rate, maybe the Auto baud rate is not agreeing with the UIC module.
Title: Re: SLC 5/02
Post by: tylerinthetub on April 17, 2017, 02:16:03 PM
Tried setting at 19200, same result
Title: Re: SLC 5/02
Post by: tylerinthetub on April 17, 2017, 02:20:23 PM
There may be something fundamental I am missing, I'm not familiar with VS studio at all, I literally just followed the quickstart guide.

Opened project
Did  build
Added a driver
added a button and tried to go online

Just following onscreen instructions.

Title: Re: SLC 5/02
Post by: Archie on April 17, 2017, 02:26:59 PM
The driver has never been tested with a UIC module and I do not have one to test with, so I am shooting in the dark. I think you are doing everything correct. Do you have a SLC or Micro with an RS232 port to test with?
Title: Re: SLC 5/02
Post by: tylerinthetub on April 17, 2017, 02:38:55 PM
Unfortunately not, the only other PLC I have at home here is a little Trilogi and a few arduinos.

I'd mail you the cable to play with but then I wouldn't be able to make any beer :P

I have another work around as a back up plan, but I didnt really want to go that way, I may be able to get a hold of Kepware OPC to DF1 driver, unfortunately that rules out being able to eventually transfer to a pi and run it on there permanently, instead of my laptop.
Title: Re: SLC 5/02
Post by: Archie on April 17, 2017, 02:47:04 PM
What version of AdvancedHMI are you using?
Title: Re: SLC 5/02
Post by: Godra on April 17, 2017, 02:58:06 PM
I usually set TargetNode to 1.

Would you know, from RSLinx, what your node is?

Can you also post the Device Manager picture for your Com3 settings?
Title: Re: SLC 5/02
Post by: tylerinthetub on April 17, 2017, 03:19:28 PM
What version of AdvancedHMI are you using?

3.99
Title: Re: SLC 5/02
Post by: tylerinthetub on April 17, 2017, 03:24:06 PM
I usually set TargetNode to 1.

Would you know, from RSLinx, what your node is?

Can you also post the Device Manager picture for your Com3 settings?

(http://i.imgur.com/eVpa70T.png)
(http://i.imgur.com/07g0tzt.png)
(http://i.imgur.com/ZwLQ5OC.png)
(http://i.imgur.com/luoFPH0.png)

I was assuming the station number was the node

Tried with target node set to 1 and also no traffic

Ok baud on the port was set to 9600, I changed to 19200 am trying a few things
Title: Re: SLC 5/02
Post by: tylerinthetub on April 17, 2017, 05:24:47 PM
Nothing, still no traffic on the com port at all
Title: Re: SLC 5/02
Post by: Archie on April 17, 2017, 05:29:52 PM
What version of AdvancedHMI are you using?

3.99
3.99 and what version? There should be a letter after 3.99
Title: Re: SLC 5/02
Post by: tylerinthetub on April 17, 2017, 05:42:22 PM
3.99t
Title: Re: SLC 5/02
Post by: Archie on April 17, 2017, 05:48:26 PM
3.99t
I don't think there has been any changes to the DF1 driver, but you may want to try the latest version of 3.99w
Title: Re: SLC 5/02
Post by: Godra on April 17, 2017, 06:02:27 PM
Did you also make sure to right-click the RSLinx icon in the system tray and select "Shutdown" prior to using AHMI?

Also, have you actually used the "Auto-Configure" button to set parameters for your RS-232 DF1 device in the RSLinx (or did you do this manually)? If these settings are correct then you just need to focus on setting the AHMI driver, whichever driver you might be trying at the time.
Title: Re: SLC 5/02
Post by: tylerinthetub on April 17, 2017, 07:16:47 PM
Rslinxs is for sure shutdown, I checked through the task manger as well.  Auto configure does not work with the UIC adapter, those settings were entered manually, so they are definitely right. Archie I will try upgrading to w but it will have to wait until Friday, the Leafs are playing and I have work next few days.

It would be nice to get this working, so many of these PLCs and cards can be had for dirt cheap on eBay they just need a cheap HMI to repupose them.
Title: Re: SLC 5/02
Post by: Godra on April 17, 2017, 08:12:56 PM
Would any of this apply for your setup:

https://www.theautomationstore.com/how-to-configure-the-1747-uic/
Title: Re: SLC 5/02
Post by: tylerinthetub on April 19, 2017, 08:46:59 PM
Yes that is the driver I have installed, followed those exact instructions. 

Just to make sure RSLinxs isn't hogging the com port I re-ran a bunch of things after changing the UIC to com9 and still absolutely nothing.

Will try upgrading AHMI tomorow
Title: Re: SLC 5/02
Post by: Godra on April 19, 2017, 11:36:18 PM
I am not familiar with either SLC 5/02 or with your UIC adapter but the reason I posted that link was because your AB_DF1 settings differ from theirs.

Not sure if 9600 baud might be functional if you set it in your COM settings or whether DH-485 is the correct choice instead of Data Highway Plus or whether SLC-CH0/Micro/PanelView should replace your 1770-KF2/1785-KE....
Title: Re: SLC 5/02
Post by: Vitor on April 20, 2017, 06:21:28 AM
You just cannot use the UIC with AdvanceHMI, just not work because the UIC uses a special DF1 protocol. Thats why in Rslinx the driver is 1770-KF2/1785-KE/SCAN... and not the normal DF1/Micrologix/PanelView. But i think, not shure, the SLC 5/02 as a RS232/DF1 port.
Title: Re: SLC 5/02
Post by: tylerinthetub on April 20, 2017, 10:34:29 AM
You just cannot use the UIC with AdvanceHMI, just not work because the UIC uses a special DF1 protocol. Thats why in Rslinx the driver is 1770-KF2/1785-KE/SCAN... and not the normal DF1/Micrologix/PanelView. But i think, not shure, the SLC 5/02 as a RS232/DF1 port.

that would explain it then, but the 5/02 is DH485/rs485.
Title: Re: SLC 5/02
Post by: Archie on April 20, 2017, 10:52:07 AM
I would think the only difference with using straight RS232 versus the UIC module is that the Source and Target nodes will become important
Title: Re: SLC 5/02
Post by: bachphi on April 21, 2017, 09:38:07 AM
Tyler is trying to put us in his beer tub.
My early post said " Add DH485 UIC device driver" and he said "Done that"  , but all the screen shot shown here were not DHC485 UIC driver. However, his weird DF1 setup appears to be working :=)

If you can wait till next week, I can test one unit with 5/02.

BTW, can you summarize your beer making secretive process?
Title: Re: SLC 5/02
Post by: tylerinthetub on April 21, 2017, 09:29:35 PM
Sorry guys I got busy at work last few days, but I should have some time tommorow to work at this a bit.

Bachphi I forgot that the settings are a bit different.  I posted the question on PLC talk some time ago and had some info from Ken Roach here http://www.plctalk.net/qanda/showthread.php?t=99426 and thats where my settings come from.  I'm tempted to ask him for some advice as he's very active on that forum and knows his Allen Bradley.

My brewery isn't much of a looker yet but its coming along

(http://i.imgur.com/VDzjald.jpg?2)
(http://i.imgur.com/BeZajXr.jpg?1)
(http://i.imgur.com/DwW36kc.jpg1)

And a quick P&ID i did up

(http://i.imgur.com/Ag38sMR.png1)
Title: Re: SLC 5/02
Post by: tylerinthetub on April 22, 2017, 10:38:18 AM
Did a little more reading and digging and the PLC is for sure on Node 1, Node 0 is Rs linx
(http://i.imgur.com/5wj1qej.png)
Also ungraded to 3.99w

Still no luck though, will keep digging today.
Title: Re: SLC 5/02
Post by: Archie on April 22, 2017, 11:07:28 AM
Do you have MyNode set to 0 and TargetNode set to 1 in the SerialDF1 driver?
Title: Re: SLC 5/02
Post by: Archie on April 22, 2017, 11:15:48 AM
I think the 5/02 uses a smaller PCC packet size, so try reducing MaxPCCCPacket size to 80
Title: Re: SLC 5/02
Post by: tylerinthetub on April 22, 2017, 01:04:04 PM
Yup my node set to 0 and target node set to 1, lowest packet size I can set is 92. Still no luck, I'm going to try reinstalling the driver
Title: Re: SLC 5/02
Post by: Archie on April 22, 2017, 01:19:01 PM
When you ran Device Monitoring Studio, it showed only a connection, but no transmission of data. Add a BasicLabel to the form and set PLCAddressValue to N7:0, then run that capture again.
Title: Re: SLC 5/02
Post by: tylerinthetub on April 22, 2017, 01:31:23 PM
Woohoo its talking!
Title: Re: SLC 5/02
Post by: tylerinthetub on April 22, 2017, 01:36:51 PM
Ok I have coms back and forth now, thank you guys so much. I will screen cap and post all my final settings and append the thread title so if anyone else comes looking the info will be here.
Title: Re: SLC 5/02
Post by: Archie on April 22, 2017, 02:11:48 PM
I was just about to go to the office to dig in the "Deep Storage" because I remembered a KF3 box and a 5/02 being there. Glad you got it working before I had to dig in that area.
Title: Re: SLC 5/02
Post by: tylerinthetub on April 22, 2017, 03:44:03 PM
Ok final settings:

(http://i.imgur.com/vsHivUx.png)
Title: Re: SLC 5/02
Post by: bachphi on April 23, 2017, 10:01:37 AM
I am glad it's working out for you, atleast I dont have to test it out. Was the packet size the key here?

Looks like your plumbing skill is better than wiring skill :=) . I did have a really good offer from the very same company that was in the picture. They told me, at the time, that I would get a monthly "stipend" in the form 24 can of beers , i think. hehe. I turned them for family reason.




Title: Re: SLC 5/02
Post by: tylerinthetub on April 23, 2017, 10:04:19 PM
I am glad it's working out for you, atleast I dont have to test it out. Was the packet size the key here?

Looks like your plumbing skill is better than wiring skill :=) . I did have a really good offer from the very same company that was in the picture. They told me, at the time, that I would get a monthly "stipend" in the form 24 can of beers , i think. hehe. I turned them for family reason.

The driver re-install was what eventually did the trick, but I don't really have much of a desire to work backwards and figure out where it stops working.

I put about 15 hrs of programming in this weekend, when I finish the wiring up and it works I'll put a thread up I the projects section.