Host Engineering Forum
General Category => Do-more CPUs and Do-more Designer Software => Topic started by: JeffS on May 18, 2020, 09:58:09 AM
-
Is there a better way to handle pulling strings off a remote Directsoft PLC than using SWAPB and STRPUTB?
-
No, since a DL PLC does not have a concept of "strings". It's more of an assembly language machine, where the character BYTEs are stored in V memory.
Hence, SWAPB and STRPUTB can do what you need. There is no single instruction to read a "string" from a DL PLC (they may or may not be BYTE swapped in the DL PLC, since this is a standard issue in most 16 bit WORD based computers).
-
Thanks for the confirmation.