Schreiben von SerialPort: Unterschied zwischen den Versionen

Aus ArcoWiki
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „ It is possible to write data on a serial port through the DMIS code, for example: DECL/CHAR,10,my_var DECL/INTGR,ii my_var=ASSIGN/'He…“)
 
(kein Unterschied)

Aktuelle Version vom 29. Juni 2018, 10:19 Uhr

 It is possible to write data on a serial port through the DMIS code, for example:


DECL/CHAR,10,my_var
DECL/INTGR,ii
my_var=ASSIGN/'Here the value assigned!'
DID(my_com_device)=DEVICE/COMM,'com3:9600,n,8,1'
OPEN/DID(my_com_device),DIRECT,INPUT
  DO/ii,1,10,1
    WRITE/DID_com_device),my_var
  ENDDO
CLOSE/DID(my_com_device)