So what I thought would be simple has turned out not to be, or at least it hasn't become obvious enough to me yet.
I have a DINT coming into a CL5380 from an RFID reader. That DINT is in an array with a length of 10. DataRead[10]. There is also a DINT to write the data to the RFID tag if needed for initial setup, DataWrite[10]. So I wanted to set something up so that the end user can enter a STRING tag on the HMI for the data that they wanted written to the RFID tag, seemed like the STOD instruction would be simple and what I needed to use and it seems as if I may have underestimated what it is I need to do.
I was hoping that I would merely be placing the string data into the STRING tag that was the Source in the STOD and then for the Dest use DataWrite[0] and all would be good. I was incorrect and now that I have sat here and played around with it for a bit all of the methods that I have come up with have confused me even further. To the point where I cannot even get a single letter for example "A" to be written to the tag and then read into the PLC. I will do the write and then the read shows a "0" in the DINT array element that I assumed would read "A", after a DTOS of course. Any advice as to what I need to do to accomplish what it is Im looking to do?
I have a DINT coming into a CL5380 from an RFID reader. That DINT is in an array with a length of 10. DataRead[10]. There is also a DINT to write the data to the RFID tag if needed for initial setup, DataWrite[10]. So I wanted to set something up so that the end user can enter a STRING tag on the HMI for the data that they wanted written to the RFID tag, seemed like the STOD instruction would be simple and what I needed to use and it seems as if I may have underestimated what it is I need to do.
I was hoping that I would merely be placing the string data into the STRING tag that was the Source in the STOD and then for the Dest use DataWrite[0] and all would be good. I was incorrect and now that I have sat here and played around with it for a bit all of the methods that I have come up with have confused me even further. To the point where I cannot even get a single letter for example "A" to be written to the tag and then read into the PLC. I will do the write and then the read shows a "0" in the DINT array element that I assumed would read "A", after a DTOS of course. Any advice as to what I need to do to accomplish what it is Im looking to do?