Soder Posted February 10, 2014 Share Posted February 10, 2014 Hi, I am working on a host application where I have to read a set of register from the PMAC. My questions are: 1. Is reading/writing a single register from the host atomic in the PMAC? Or is it possible that a register is half-written when it's read? 2. Is reading a set of registers from the host atomic? for example: RL$004000 5 Or is it possible that a PLC/Motion program in between reads/writes any of the individual registers addressed? EDIT: This is done over TCP with ASCII communication. Thanks! Link to comment Share on other sites More sharing options...
curtwilson Posted February 10, 2014 Share Posted February 10, 2014 Single operations to access a full 24-bit or 48-bit register are atomic in PMAC, so there is no concern that it could be interrupted in the middle and get a partially changed value. However, accesses to multiple registers as in your command are not atomic, so you would need to create a mechanism yourself to ensure a coherent set of data. Our DPRAM data exchange functions do provide mechanisms of this type. Link to comment Share on other sites More sharing options...
Recommended Posts