Author Topic: SLC 5/02  (Read 8413 times)

tylerinthetub

  • Newbie
  • *
  • Posts: 24
    • View Profile
SLC 5/02
« 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.





dmroeder

  • Administrator
  • Full Member
  • *****
  • Posts: 212
    • View Profile
Re: SLC 5/02
« Reply #1 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.

tylerinthetub

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: SLC 5/02
« Reply #2 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.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: SLC 5/02
« Reply #3 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

bachphi

  • Hero Member
  • *****
  • Posts: 671
    • View Profile
Re: SLC 5/02
« Reply #4 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
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

tylerinthetub

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: SLC 5/02
« Reply #5 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.

tylerinthetub

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: SLC 5/02
« Reply #6 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


I installed a com port monitor and when connecting with RSLINX



When trying to connect AHMI


nada, its not even attempting it.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: SLC 5/02
« Reply #7 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.

tylerinthetub

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: SLC 5/02
« Reply #8 on: April 17, 2017, 02:16:03 PM »
Tried setting at 19200, same result

tylerinthetub

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: SLC 5/02
« Reply #9 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.


Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: SLC 5/02
« Reply #10 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?

tylerinthetub

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: SLC 5/02
« Reply #11 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.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: SLC 5/02
« Reply #12 on: April 17, 2017, 02:47:04 PM »
What version of AdvancedHMI are you using?

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: SLC 5/02
« Reply #13 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?

tylerinthetub

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: SLC 5/02
« Reply #14 on: April 17, 2017, 03:19:28 PM »
What version of AdvancedHMI are you using?

3.99