DF1 command to write a single bit to PLC5?

vorfeed

Member
Join Date
Jul 2008
Location
New Mexico, USA
Posts
19
Hi,

I am using the Tuxeip library to talk to a customer's Allen-Bradley PLC5. Tuxeip currently uses DF1 command 0F 67 (Typed Write) to write binary values to the PLC. The only problem with this is that Typed Write can't change individual bits, only the entire word. I can get around this by reading the current word from the PLC and then re-writing it, but this is obviously problematic -- what if the value changes in the PLC in the meantime? It would be much better if there were a way to write a single bit without changing the rest of the word.

Can anyone suggest a better command to use when writing single bits to a PLC5? 0F 26 (Read-Modify-Write) seems to have the same problem, but what about 0F 02 (Bit Write)? Does anyone have any experience with that one?

Thanks for any help you can give me!
 
Last edited:
Those Protected Typed Logical Writes seem like a good idea, but the Rockwell DF1 manual says that PLC5s "can initiate these commands, but cannot respond to them". I'll probably use them for SLC support, but I'm still stuck for PLC5. Any other ideas?
 

Similar Topics

Hi, I'm a developer and I'm looking at the "DF1 Protocol and Command Set Reference Manual". In this manual it doesn't say anything about DF1...
Replies
10
Views
10,749
Anyone knows the format for this command? It is mentioned in AB DF1 pdf (program download steps, chapter 12), but I cannot find any reference for...
Replies
9
Views
2,939
Anyone knows the format for this command? It is mentioned in AB DF1 pdf (program download steps, chapter 12), but I cannot find any reference for...
Replies
0
Views
1,549
Hello everybody. I am currently trying to retrieve the Integer data file values from a micrologix 1200 via VB6. I have constructed a string that...
Replies
7
Views
15,073
I am working on setting up a Prosoft Datalogger model PLX51-DLplus-232. This unit will be collecting data from a SLC 5/05 on the DB9 port set to...
Replies
3
Views
103
Back
Top Bottom