# lotuseater

MrPLC Member

11

## Community Reputation

0 Neutral

• Rank
Sparky
• Birthday 03/23/83

## Contact Methods

• Website URL http://
• ICQ 0

## Profile Information

• Country United States
1. ## Help to Convert String (Hex Format) to Decimal

We are doing some testing communicating serially with a linear actuator in order to get its current position using an Allen Bradley Compact Logix processor. The information comes back as a string and I am able to extract the part of the string I need using an MID instruction. This string contains a hexadecimal value. The actuator company has demonstrated to me how find the actual position using this value within Microsoft Excel, but I would like some assistance automating this in my PLC. Here is an example of how to find the position using Excel: String Value from device: 'FFFFEC14' Excel HEX2DEC() = 4294962196 Constant Base Position: 'FFFFFFFF' Excel HEX2DEC() = 4294967295 Actual Position = 4294962196 - 4294967295 - 1 = -5100 Actual Position is -51.00 mm This matches up to the actual value when looking at the front end software for the device, but I would like to complete this procedure within my PLC. Does anyone have any tips for converting the string value (HEX) to an appropriate decimal value? Thanks.
2. ## Random Number Generator

Thank You for the Replies. I'll do some more thinking on this when I get some time and see what I can come up with.
3. ## Random Number Generator

I am curious if anyone knows a good way to create a random number between 1 and 13 using Logix 5000. I have seen the example on AB's website found here: http://rockwellautomation.custhelp.com/cgi...171&p_olh=0 I think I may be able to use that example with some additional scaling. But, does anyone have any other options? There is a specific instance I am wanting to use this for, if we need to get into additional details I will. Thanks, Jake

5. ## Integer Array Search - Programming Help Needed

In a nutshell - I have an array of SINTs that I am shifiting as a Lug Line is running for tracking. Basically, a "111" signifies an empty lug. A "1" through "13" signifies which of thirteen stations that a loaded lug came from. Stations look for a "111" to know that they can load at that postiton at that time. This array is shifted properly as the conveyor is running. Now, I need a way to tell when there is a group of 21 consecutive lugs empty for a line change downstream. I need to know where this group of array elements are in the array and load them with a filler number in those positions in order to keep them empty. I have not been able to create a very clean way of finding a group of 21 consecutive array positions with the number "111" in it. Any Ideas?
6. ## 1794-AENT Module Configuration

After I found this out about my 32-point modules a while back, I was able to exchange them for 1794-IB16XOB16Ps. This is a 32-point module, 16-in and 16-out, that you CAN rack optimize.
7. ## Detect COMM loss on PanelView Plus 600 over Ethernet?

I am creating different runtime files for different "stations" out of the same machine edition project. Each panelview will only have one file on it for the operator to select from.
8. ## Detect COMM loss on PanelView Plus 600 over Ethernet?

The concept is right; it is similar to what I had thought. But, my problem is I do not know where to create the "while running" event? Thank You Again.
9. ## Detect COMM loss on PanelView Plus 600 over Ethernet?

Thank You for your replies. I have been able to attach the 'seconds' value in the Global Connections setup to a tag in the PLC. I currently have a single Machine Edition project with several different Main Screens. A different initial graphic is chosen in the Startup options for each runtime file. Is there a way to attach the "seconds" value to several different PLC tags so that it does not have to be changed to a different tag for each runtime file? Otherwise, I would need to change it for each different Startup configuration.
10. ## Generating bar code labels using Control Logix PLC and Zebra printer

Comtrol has an Ethernet to Serial converter that you should look into. http://www.comtrol.com/products/specs/spec...product=99011-6 The setup would be control logix -> DeviceMaster UP -> Printer I have used these to read serial barcode scanners into PLCs with great success.
11. ## Detect COMM loss on PanelView Plus 600 over Ethernet?

I am wondering what is the best way for a PLC (1769-L32E) to detect comm loss since the communications are initiated by the PanelView Plus 600? I have read that the Panelview Plus does not support the ETHERNET PANELVIEW module in logix5000. Otherwise, that would be a good fix. For instance - If a PanelView has a start/stop control, it would not have the ability to stop if there was a communication loss. I would want the PLC to know if the PanelView had lost communication with the PLC to properly adjust the process. Thank You.