Writing a string value without clearing the previous data??

davatv223

Member
Join Date
Feb 2013
Location
SD
Posts
14
RSlogix5000 - Here is what I would like to accomplish and what I am running into. Currently this is a scanner ASCII gateway to PLC set up.

A) String A IS NOT equal to String B outputTest is energized.

B) String A IS equal to String B outputTest is unlatched

2nd Scan is needed. This will take the ASCII string to fill String A, but it won't unless I clear the 1st Scan with a CLR instruction. Here's the catch, scenario A goes true and the outputTest us latched on. I want to avoid this clearing issue to accept the latest string and avoid the outputTest from getting energized.

Is there a way to write a string on top of a string without clearing it first. I am sure it is something simple I am missing. Help this newbie out.

Thanks in Advance!!
 
Lets say I put in a 5 sec delay. I guess I am still stuck on how and when I should clear out this string so that the next scan can be written to the plc. If I clear it out and it's longer than 5 secs I am in the same boat.
 
I just used a compare instruction and because the string I was dealing with is always a 10 digit value I made the output true if that was the case.

The clear instruction set my string back to a zero value. As long as my string has a index value of 10 (True) it will continue to do a NEQ String A to String B and latch on the output.

Then I used an existing timer to execute the clear instruction on String A.
 

Similar Topics

How can i write aHint or dialog Text box when runtime manger already running .
Replies
0
Views
1,645
PLC Gurus, I need a little bit help here.. A little background, we're working on a project using PlantPAx from Rockwell.. We use some of their...
Replies
4
Views
3,375
Hello All This is my first Transaction Manager project. I have a working configuration in Transaction Manager 10.20 that successfully writes...
Replies
3
Views
7,622
Using FTV 9 SE Local Windows 10 Trying to use a little VB to write to a string. Keep getting an error. 'Taggroup\Tagname is a string Dim Note...
Replies
1
Views
1,999
Could somebody please point me in the right direction? I'm trying to incorporate a table into each motor's faceplate. It's a simple, two...
Replies
2
Views
3,197
Back
Top Bottom