Recent

Author Topic: PascalScada - write directly into array of bytes  (Read 240 times)

Vbxler

  • Newbie
  • Posts: 3
PascalScada - write directly into array of bytes
« on: September 22, 2019, 04:59:47 pm »
Hello everyone,

I'm just getting started with PascalScada and can read
some single bytes from a S7300 and display them in a THMIEdit.

But how can I read a few bytes from the PLC
and write them directly into an array of bytes?
Without an output in an HMI object.

Thank you for any help.

avra

  • Hero Member
  • *****
  • Posts: 1712
    • Additional info
Re: PascalScada - write directly into array of bytes
« Reply #1 on: October 04, 2019, 02:05:14 am »
Try to examine source code of TPLCBlock.GetValue(s) and try to cast it to bytes or type you need and see what comes out. You could get much better answer from PascalSCADA author here:
http://www.pascalscada.com/s7-protocol-over-isotcp/
https://sourceforge.net/p/pascalscada/discussion/
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib