chelton
MrPLC Member-
Content count
379 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Calendar
Everything posted by chelton
-
SLC 5/05 - DWORD Bit compares
chelton replied to devo.xx's topic in Allen Bradley / Rockwell Automation
If there is only 1 trolley wouldn't it be easier to use a single INT for the trolley location and a single INT for trolley destination? Say N10:6 = trolley location N10:7= trolley destination Then if -[XIC]- N10:4/[N10:7] = True There is an item at the trolley destination. -
Heres an example using XFER instruction
-
-
Is winxp the native OS or a vitual machine? If it is a vitual machine under vmware I needed to modify my .vmx file to connect to cp1l processors.
-
As Okie says, de-bouncing the input would be a simple software solution. In your program since all your input is doing is resetting the timer, simply branch around the input before the -[OSR]- with a less than comparitor comparing the timer accumulated value with fixed value. T4.XX.Acc < {3..4..5 } to prevent the timer resetting on false signals.
-
If any of the sensor inputs are getting 2 quick pulses resetting the timer at 1 second this could cause a math overflow? 600*60=36000 How big is the detection area for the inputs? Even though there is a [ONS] this would not help if the sensor is seeing more that 1 pulse.
-
Also, The PID instruction does not operate in simulation mode , you need the physical hardware.
-
I have had a problem in the past when passing an "int" to tagwrite(), i would not always get the values i was expecting. It only seemed to happen when calling tagwrite() numerous times in the one function.
-
Have you tried TagWrite("SS_SlAbs"+IntToStr(i+1),IntToStr(iSlitCurrPos*10)); TagWrite("sTag","sValue")
-
@digispark Glad you got it working. Whenever I use the OMFINS driver with the default setting I get an error, as shown below. To rectify this I increase the [OMFINS]Delay=0 in the citect.ini.
-
@The Fat Controller I have not used the eip21 card yet. But I have successfully used the omfins3 driver on CP1's with a CP1W-CIF41 or CP1W-MODTCP61, and on CJ2M's using onboard ethernet/ip module, and from what I understand the EIP21 card is the same as the built in Ethernet/IP except it has a far greater data link capacity 180,000 words, compared with 640 words.
-
What errors do you see in the kernel? Can you post a screen shot of your driver and io/device windows when you test the project? I've used the omfins3 driver in my last few projects and have had no problems. only minor tweaks in the citect.ini file to stop any errors showing . @BobB Do you supply and install fins-gateway on all your new projects?
-
Have you tried connecting with CX-Prog using the ethernet or ethernet(fins/tcp) driver to ensure your eip21 card is configured correctly? Also the unit number is the unit number of the cpu not the eip21. so the address 1/10/12/S is the /12 the unit number of the cpu?
-
My mistake, The Omfins network starts with network 1 so. Your citect.ini file for the primary server should be [OMFINS] source = 1/1/0 and the IO device address would be 1/10/12/S
-
Your citect.ini file for the primary server should be [OMFINS] source = 0/1/0 and your standby server [OMFINS] source = 0/2/0 Assuming that there is no routing table set up in the plc. This is from the citect knowledge base. Hope this helps.
-
No, You can have multiple devices, you just need to have unique device names and file names. the number of files parameter is unique to each device.
-
-
Make sure you are changing the path in the "devices" section and not the path in "reports" section.
-
Did you update pages after modifying the genie? >graphics builder/ tools / update pages
-
I think you will find your tag substitutions will be different data types, what data type is the tag substituted to %tag% and what tag data type is substituted to %alarm% ?? If one is an INT and one is a REAL for example you will get this error. You would have to do a type conversion like inttoreal(%tag%)
-
How to Count Registers that <> 0 ? in PLC-5
chelton replied to waterboy's topic in Allen Bradley / Rockwell Automation
No problem, If you are expecting a greater number of "TRUE" results then I would also change the comparison to #INT = 0 . Then subtract the total count from R6.*.Len. As the FSC waits for an action on each "TRUE" comparison. -
How to Count Registers that <> 0 ? in PLC-5
chelton replied to waterboy's topic in Allen Bradley / Rockwell Automation
That is correct, that is when you add to your count and resume the scan by resseting the .IN bit. The instruction hasn't completed until the .DN bit. -
How to Count Registers that <> 0 ? in PLC-5
chelton replied to waterboy's topic in Allen Bradley / Rockwell Automation
In a PLC-5 I would use the FSC instruction then on each "TRUE" comparison add 1 to an "INT" by using the ".FD" bit and resume scan y resseting the ".IN" bit. -
This screenshot may help
-
Thanks lostcontrol and BobB for the sample code, i'm working through it now.