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

Title: Do-More Strings from Directsoft
Post 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?
Title: Re: Do-More Strings from Directsoft
Post by: franji1 on May 18, 2020, 10:41:50 AM
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).
Title: Re: Do-More Strings from Directsoft
Post by: JeffS on May 18, 2020, 10:56:10 AM
Thanks for the confirmation.