DanT
-
Posts
295 -
Joined
-
Last visited
-
Days Won
20
Content Type
Profiles
Forums
Gallery
Events
Blogs
Downloads
Articles
Media Demo
Posts posted by DanT
-
-
Moderator : Post to a better location -
Hi;
What PLC are you using?
How are you communicating with the Flow Meters?
DanT
-
Hi Jesse;
I looked at your program again and began to edit a few things.
You have the PLC name set as an Indirect address MI 0 -- as set up -- the name of the PLC is a NULL ( No Name)
You are trying to use a MI Integer as the name, this will not work - I found the screen where you assign the PLC Name - COMMS
The name should be an ASCII String, and if you tried to write a name here(MI 0), you will overwrite MI1,MI2, etc. or Invalid ACSII Characters
Even if the Name is to be a number, the number is entered as an ASCII String -- Modify your COMM HMI Screen to enter the PLC Name
Store the PLC Name some where else - in your program I chose MI 500
Maybe for testing, enter a the PLC Name as a Direct String like V130TR6
The PLC Name acts like a password to access the PLC
Look up PLC Name in Help
Attached are my revisions -- to the program -- my revisions are in Startup Net and COMMS HMI
Just as a note: MI's can be used to store and work with Integer Numbers, and also store and work with ASCII Chars
When you use MI's to store ACSII Chars, change the view from DEC to HEX and have an ACSII Table handy
DanT
-
Hi Jesse;
I downloaded your program and have looked it over.
A few Comments:
1 You have many nets that have multiple logical statements in them
Break them out into individual nets, Look at the STL Quick view.
Unitronics ladder processing prefers 1 logical statement to produce 1 finite output from the net, not many logical statements and a confused final output.
( I have seen cases where multiple statements in the same net gave the WRONG output desired, breaking them out into individual nets cleared the problem)
Unitronics has no limits for the number of nets in a subroutine.
2. In the !Home Routine, Break up Net 1 into 2 separate nets
Store and MB 31 in one Net
Com setup in another Net
3. In the !Home Routine , Break up Net 2 into 2 separate nets, Place the Modbus IP Scan in its own net BEFORE calling the Main Subroutine.
The way you have it placed is that it will be processed AFTER the Main Subroutine has been processed.
4. In the Admin Password Subroutine Break into 2 separate Nets Change the --| SB54 |---- to a ---| P |--- Leading edge one shot pulse
5. In the Main Subroutine -- Break all those subroutine calls in Net 1 into individual nets, they will still get called in sequence.
6. Unitronics has defaults for setting up the Ethernet Sockets. You can modify them as needed, or restate them in the net to avoid ambiguity ( I do this in my programs)
7. If you want your SCADA to pick up specific data, and it is spread out over different MI's, regroup them together in 1 area to make the Modbus calls easier.
( if you cannot regroup them , then use a STORE to send them to a grouping area)
Doing these will help you troubleshoot your connection issues.
DanT
-
Hi;
The UniStream Series has the ability to do a Virtual HMI.
The Models with the HMI ( USP, US5,US7,US10 ) can be accessed by a VNC Connection - the PLC's have a VNC Server built in - Just activate it.
The USC-xx-xxx Models, the HMI is Virtual - you create the HMI as it it is actually there, then activate the internal VNC Server to make it available.
Use a VNC Viewer Program ( They are normally Free downloads from various developers) and view the Operator Screen remotely.
There are 2 Modes for VNC -- Read Only -- Can View the screen , but not do anything on it, or Read-Write - View and Control as if you were at the screen in person
The VNC Server can be set up with Passwords.
DanT
- 1
-
Hi;
Download the UniStream examples Zip File ( Software, UniStream, UniStream Examples)
There are some # C Example files in thereDanT
-
Hi ;
First you need a reliable time base.
The only reliable time base will be the 100ms pulse so use it to turn a MB on and off every 100ms = 5 Hz
Scan time is not reliable as it can vary from place processor activity, it may be faster, but not steady.
You could look at the Interrupt routines -- 1.25mS and 2.5mS they have to be very short to be effective and not slow down the PLC processing.
There are programs in Example to show how to use them. You will have to test and experiment.
Move over to a Vision PLC that has the PTO Outputs already available.
DanT
-
Hi;
Those are Custom OEM PLC 's -- Not standard products.
DanT
-
Hi;
You will need to set up the RS232 Com Port
You can use the FB Protocol Function blocks to send the data string.
Under Help, go to Examples, and then to Communications and look at the examples under FB Protocol.
the Example V130_Send_number_and_string illustrates how to do this.
In Help - search fb s library and then Communications Protocol
Experiment, post your code with your questions.
DanT
-
Hi Peter;
Are you trying to do a Jump type branch? Jump to a Labeled Net?
Under Help, Examples, Version 900, Projects , Ladder, see V280 Label Loop example program.
DanT
-
Hi Ratsept;
Download the UniStream Examples Zip file from the UniStream Downloads section.
There are Modbus examples under Communications.
The Modbus is set up under protocols and creates a Struct in Global Variables that has data in there about how the
communications are working - Attempts, successes, fails, and status codes, and more.
Optional - Post your Code and we can review it.
DanT
- 1
-
Hi Willis;
The JZ20-J-T20HS has 2 NPN HSO -- Review the Spec Sheet and the Installation guide
There are a few example programs in the Help-Examples-Motion of the U90 ladder Program. Review these.
On the Drive, the DIR will determine the direction the stepper will turn ( on or OFF. the PUL will move the stepper ( High Speed output).
For proper wiring, you will need the PDF data sheet for the driver to review the interface and determine wiring.
Create a schematic of the interface, and we can review and guide.
DanT
-
Hi Ash;
Get the serial Numbers from the PLC's and contact Unitronics Support with the model number and serial number and they may be able to
give you the MAC Addresses of the PLC's.
From there use an IP Sniffer program that looks at the MAC Addresses and provides the IP Addresses.
Perhaps Unitronics Support can help you via a remote session.
Once that, look and see if you can Upload the program from the PLC's.
Try to contact the vendor for the program also.
DanT
-
Hi Ash;
Do these have a Unitronics USL Display attached to them or are they "blind"?
If a USL Display, can you get into UniApps? ( Press touch screen Upper Right Corner area. )
Do you have a VNC Connection to them? This will have the Panel IP in the Setup
Were these done inhouse or outside vendor? If outside vendor, contact them.
Contact Unitronics Support and give them the Model number and the Serial Number. They may be able to provide the MAC address.
Another thing: Is this PLC a Modbus Slave to another device? it will have the USC panel address there.
DanT
-
Hi;
Tested this out, has the same issue on my test PLC this morning.
Found out I had an IP Address Conflict. (There is another PLC plugged into the network with the same IP ( IP address is in a range we use to "Play/Test" PLC's) )
Disconnect the PLC from the network and ping the IP Address the PLC was on. Getting the returns? - got a conflict.
Test ping another IP Address, look for a free one.
Manually change the IP address in the PLC via Info mode( be sure to apply) and then plug the PLC into the network and ping the new address.
If good, then try the PLC Connect again. If good, then figure out who the other IP Address belongs to and decide which one gets the permanent change.
DanT
-
Hi;
Unitronics PLC's do not support Thermistors.
Unitronics PLC's with temperature inputs support Thermocouples or 100ohm RTD or 1 kohm RTD ( IO Module)
You can refer to the installation sheet that came with the PLC or look on line at Unitronicsplc.com , Technical support and tech documents
for the model you have.
You can look up on the internet for a Thermistor interface to a 0-10V analog input.
The calibaration will be up to you to figure out - do the math.
Note that analog inputs on models without temperature input are 10 bit ( 0-1023)
and on models with Temperature inputs the analog resolution is 14 bit ( 0-16767)
DanT
-
Hi;
One observation:
Many different logical statements inside each net. PLC Compiler has to " chew through " a lot to get 1 final result of 2 or 3 different operations.
( look at the STL Statements for these nets)
That one with 3 references to MB56 will cause problems -( )- and 2 x -(P)- Break it up. The Leading edge pulses can get missed in the current setup.
Separate into individual nets. - The STL's are simpler to work on and the result is simple - The plc will process them easier.
I have seen cases when having more than 1 logical sequence in a net gives an un-expected wrong result.
Unitronics recommends 1 logical statement per net.
DanT
-
Hi Hasan;
The Example program were created before the SAMBA was developed and the models used have more memory available.
In these cases you can re-assign the memory locations from the higher ranges to the ranges for the Samba within VisiLogic .
Under Edit there are a few real handy functions :
Find Operand -- see where an operand is used and how many times
Replace Operand -- to move an operand from 1 MB/MI to another
Open the example, review the MB's, MI's and move them to the SAMBA range, Save the program under an new name
Then Under View, Hardware config change the hardware to the SMABA Model
OR Place the revised ladder into a subroutine and export the subroutine and import the subroutine into the SAMBA Program
and deal with the warnings.
Also remember to check the Analog setups and redo manually in the SAMBA
HMI's are more difficult to work with , they cannot be exported and imported into a SAMBA, so best to re-create them in the SMABA HMI.
The SAMBA has a Limited Memory range for both Ladder and HMI.
DanT
-
Hi;
The M91 and JAZZ Series PLC's have 2 Passwords that can be set.
1 Password BLOCKS ALL Communications to the PLC ( No download, no upload, no devices that need communications to operate)
When this is set, then you have to know the password to unlock it.
1 Password allows communication, BUT does not allow UPLOAD of the program unless you have the password.
There is NO Backdoor to getting to the program if these passwords are set
Refer to Help -- Project properties for the explanations.
If the PLC was programmed by the machine manufacturer, then contact them. They had reasons to protect the PLC from being tampered with.
DanT
-
HI;
Does your Computer have USB Port?
Then you can use the RS232-Com Cable and a USB to DB9 RS232 Adapter.
DanT
- 1
-
HI;
Looking at the Data Stream, the clue is the * Character. Try it as the ETX or as STX
Data Format appears stable - size and comma locations
Bring in as a string and the parse it to extract the data.
You may also be able to extract the data on the fly as it is formatted already.
Look at Examples - Communications - FB Protocol - V130 Receive 4 Numbers
DanT
-
Hi;
I tried to watch the video and got this Message in the Video Window : ( I am in Canada)
Video unavailable
This video contains content from Fremantle International, who has blocked it in your country on copyright grounds.
DanT
-
Hi;
I was able to locate the EDS Sheet in the Keyence website, extracted it, and UniLogic imported the data successfully.
Info passed on to customer.
DanT
-
Hi;
Looking for a bit of experienced guidance for a customer in setting up the Ethernet/IP Parameters and structures for using an Keyence IV2G30F Module.
Anyone set one up with a UnIStream PLC? - Your experience?
Have got the Module information for connecting to an A-B PLC, has some data there,
DanT
-
Hi;
U90 Ladder -- HELP - Sample U90 Projects -- Basic HMI Operations
There is an example program for passwords.
DanT
Parallel coils
in Vision & Samba PLC + HMI Controllers & VisiLogic Software
Posted
Hi;
Where are you using these coils as coils else where in your program?
If you use a coil as a coil say 3 times in a program, only the last state of the coil is valid at the end of the program scan.
Remember a PLC Scan starts at the top and ends at the bottom.
Coils MB 312,313,314 and 317 must have other factors controlling them.
Can you post a copy of your program.
DanT