# ECSI

MrPLC Member

416

## Community Reputation

17 Good

• Rank
Systems Integrator
• Birthday 05/15/63

## Contact Methods

• Website URL http://
• ICQ 0

• Gender Male
• Location PEI

## Recent Profile Visitors

5270 profile views

1. ## Logic required for product weight selections

MAX and MIN were the first instructions that I considered but the more I think about it the more I think it's not the best way.  If there are ten containers then the 3 or 4 or whatever number that gives me the closest to target (and just over), may not include the ones with minimum or maximum weights.  Also, if I keep using MIN to reach my target then the container(s) with maximum weight may never empty.  This would be a problem over time. Hmmmm....Maybe a combination of 1. Select a random container or maybe two of them to start.  2. Find MAX and add it in.  3. Find MIN and add it in.  4. Fine tune add MIN until close to target.  4. When close to target find which container remaining will put me just over target.... A lot to think about for sure.  The reason I am looking at this is there is a vegetable grower with a machine that hasn't worked properly from day one.  The company that he bought it from built two of them, both different, and then went bankrupt.  He's getting no support and needs help.  His program is written in C++ on an industrial PC with remote IO (modbus I believe).  I don't believe I can get access to the programming, not that I know anything about C++ anyway.  If I can come up with a plan for PLC control then he may be interested. Thanks for the input!
2. ## Logic required for product weight selections

So let's say I have 10 containers with random weights of product in them, 1.1 lbs, 1.4 lbs, 1.6 lbs, 1.2 lbs, 2.1 lbs, 1.0 lbs, ....etc. How would I begin to write the logic for selecting the proper containers that their total weight would add up to a target weight of 5 lbs and dump their product into a bag.  Ideally I need to be just over the target weight, but cannot be under.  There are so many combinations....where does one start with the programming logic?   Surely I wouldn't have to do a math equation for every combination of containers...would I? In the end this process will be repeating every 2-3 seconds, so possibly I will have to lock out selecting the containers that just dumped until they refill again.  The next selection would ignore these containers that just dumped. I'm just looking for ideas here.  I'd like to use an Omron PLC for this project.  There are machines out there that do this now.  I'm just trying to get my head around the logic in these machines. Thanks
3. ## Panasonic FX-Sigma PLC IP Address

I have a Panasonic FX-Sigma PLC and I have connected to it using serial cable and uploaded the program. The PLC has an FP-Web2 module connected to it. Is there any way to determine what IP address has been assigned to this module using FPWin Pro software? Or do I need to buy the FP Web Configurator software? This PLC is in a remote location and we are trying to set it up so that we can access the programming over the internet. So far I have connected remotely using the end users laptop and software on site, but I'm connecting to his laptop using Team Viewer software. This PLC was originally installed and programmed by others and they are no longer involved. ps: I'm very new to Panasonic PLC's Thanks!
4. ## NB designer help

There are all kinds of short videos on YouTube if you search "Omron NB designer". I don't know of any one video that covers everything though. https://www.youtube.com/results?search_query=omron+nb+designer
5. ## OK ... why does CX-P do ths?

Sorry I should have provided a link to the manual for you. Glad you found it. http://forums.mrplc.com/index.php?app=downloads&showfile=1027 But how does that explain what is happening for you? You aren't using indirect addressing are you? Not that I'm an expert since I don't think I've ever used indirect addressing. And why does the yellow disappear when changing the data type to WORD?
6. ## [Manuals] - W446-E1-17 CX-Programmer v9.x Operation Manual.pdf

File Name: W446-E1-17 CX-Programmer v9.x Operation Manual.pdf File Submitter: ECSI File Submitted: 16 Mar 2015 File Category: Manuals Manual for CX-Programmer, CX-Server, and PLC Tools Click here to download this file
7. ## W446-E1-17 CX-Programmer v9.x Operation Manual.pdf

Version

Manual for CX-Programmer, CX-Server, and PLC Tools
8. ## OK ... why does CX-P do ths?

It worked for me. I've had it happen to me before but I can't remember what instruction it happened on. Also from the manual:
9. ## OK ... why does CX-P do ths?

Set the data type of each operand to WORD. The =DT instruction is looking for that type.
10. ## Convert 4 bytes of SINT to Decimal Value

I see how you did that but the PLC sees the second word as a signed integer value -108 since the leftmost bit is a 1. Even though as an unsigned integer it would read 148.
11. ## Convert 4 bytes of SINT to Decimal Value

I have a CompactLogix connected to a Festo Servo Drive over Ethernet I/P. The data coming back from the servo is in signed integer (SINT) format. There are four bytes of data that tell the PLC the position of the unit: Shuttle:I.Data[4] = 112 (01110000) Low Byte Shuttle:I.Data[5] = -108 (10010100) Shuttle:I.Data[6] = 0 Shuttle:I.Data[7] = 0 High Byte The above data should convert to a value of 38000 which means 38.000 inches. For the life of me I cannot figure out how to convert the above data to give me 38000. Is there an easy way? Once I know how to convert this, then I will need to do the reverse function and convert a new target value, ie 40000, to SINT format and send it to the servo. The target and feedback positions will always be positive values. The SINT format was created when loading the EDS file of the Festo Drive Any help is appreciated. Thanks
12. ## Scaling - cannot get the correct result

Geez...I always thought SCL was one of the easiest instructions to use. It's definitely easier than APR for a linear 4-20mA signal.
13. ## rung is hot, but coil won't fire

Another possibility is that the PLC program doesn't match the program showing on your laptop. Some software will not inform you of this until you try to do something like an online edit.
14. ## Scaling - cannot get the correct result

Set the four registers to: P1+3 = #0FA0 P1+2 = #0900 (Not #384) P1+1 = #0000 P = #0400 (Not #190)
15. ## Ethernet/IP adapters for PowerFlex40 Frequency drivers

Chapter 3 of your 22-COMM-E manual explains how to set the IP address. I have been using Rockwell's BOOTP Server software and it works great. After setting the IP you have to make sure you disable BOOTP on the adapter or it will revert back to getting its own IP address after a power cycle instead of using the IP that you assigned. Maybe this is why you are getting the duplicate IP error? Do your errors occur after power cycles usually?