News:

  • May 03, 2024, 04:15:15 PM

Login with username, password and session length

Author Topic: Do-More Strings from Directsoft  (Read 630 times)

JeffS

  • Hero Member
  • *****
  • Posts: 105
Do-More Strings from Directsoft
« 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?

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3665
    • Host Engineering
Re: Do-More Strings from Directsoft
« Reply #1 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).

JeffS

  • Hero Member
  • *****
  • Posts: 105
Re: Do-More Strings from Directsoft
« Reply #2 on: May 18, 2020, 10:56:10 AM »
Thanks for the confirmation.