Hello, I'm trying to read a part number containing numbers and letters from a Click PLC. I scan the number into the HMI, which stores the 12-character string into 12 TXT registers in the click. Trying to figure out how to retrieve them, in proper order, as a single entry in Perspective. I have modbus addresses for each register, but I'm lost. I do this succesfully with ascii strings from Allen Bradley PLC's, but the Click does not have ascii.
More of a PLC guy than a code, guy, so help would be appreciated.
Modbus addresses in PLC.
What the tags look like. Not understanding this.
Can you show a screenshot of your current tag(s)? What values are they displaying and what's the datatype? And what does your ultimate destination look like?
As @PGriffith mentioned, include a screenshot of your setup for the best help, but what you are looking for is string addressing in the manual.
Modbus Addressing | Ignition User Manual
Specifically, this part
The device connection also has some string handling (advanced) options that will need to be considered
1 Like
Try this in a single OPC tag
[yourDeviceName]1.HRS36865:12
- [yourDeviceName] tells Ignition which configured device to use
- 1 is the modbus unit Id
- HRS means holding register with string-type value
- 36865 is the starting address
- :12 means read 12 characters from contiguous memory locations starting from above
1 Like
Brilliant, thank you. That worked perfectly! Really apprreciate it!
1 Like