rslogix5000 question. maybe dumb.

diat150

Lifetime Supporting Member
Join Date
Mar 2006
Location
Louisiana
Posts
1,474
can I use a mov instruction to move a 0 into a boolean data type? I dont have a way to test it right now and I never tried this.
 
diat150 said:
can I use a mov instruction to move a 0 into a boolean data type? I dont have a way to test it right now and I never tried this.

It won't work. The Rslogix compilier that you are moving a DINT into a BOOL and give a parameter type mismatch error
 
ok here is the scenario. I am looking at some data from a different device via wonderware. wonderware is setup to toggle a boolean data type register "on" in the plc when I have a alarm state on that device. the policy is that wonderware will only toggle the bit high, not toggle it back to zero. I need to figure out a way to toggle that bit back to zero after the plc scans that routine which would register my first out alarm.

I know that I can do this if i have wonderware write a integer to a register and then do a greater than which would then set the bit. then I can move a zero back into that register at the end of the scan. I may end up having to do that depending on what the wonderware guy does.

do I have any options to toggle that boolean bit back to zero another way, without using a integer?
 
CroCop said:
Yes, the instruction is OTU. That's all you need.

ok would it be setup like this


---[bit]------------------(bit)latch



---[bit]-------------------(bit)unlatch


where all of the bits are the same?

or would I just need to do this at the end of my routine and not worry about the latch?


----[bit]------------(bit)unlatch

excuse my ignorance on this. we never use latch or unlatch in our programs.
 
Without seeing your application, I can not comment on the logic nessecary for correct operation.
The OTU instruction will write a 0 to the bit level. Read in the help file if that isn't clear enough.
 

Similar Topics

I've got a question for those of you with Ignition experience: I've been interested in Ignition for a few years now, have not had a chance to use...
Replies
3
Views
1,859
Hello, Question: (Temp is whats being controlled here by 3 fans) Using a PID; can I set my output (CV) to be 100% at a specific input (PV)? In...
Replies
9
Views
2,230
I did a new installation of RSLogix 5000. When I open a project if you look on the tree to the left, if I double-click the "Controller tags" a new...
Replies
2
Views
1,777
i'm testing project using the emulator. i setup communication on FTV studio and configured connections with the right tags but when i go test it...
Replies
3
Views
2,033
Hello everyone. My first tread. I am not a big specialist with PLC, but I have some experience, a little. For our new project we have two...
Replies
0
Views
2,202
Back
Top Bottom