
—
Programing with CODESYS
—
CPSN-PCB271-S1-041 Reference Manual (Software)
—
78
—
4.
Create a transmission program
Create a Program
1
Double click the [PLC_PRG (PRG)] icon on the device window to open the “ST editor window”.
2
When “ST editor window” appears, write the following source code between VAR and
END_VAR in the “Variable declaration”.
StartFlag : BOOL := TRUE;
State : INT := 0;
Com1Params : ARRAY [1..7] OF COM.PARAMETER;
Com1Open : COM.Open;
Com1Close : COM.Close;
Com1Write : COM.Write;
Error : BOOL;
TestString : STRING :=
‘
Test String!
‘
;
3
Write the following source code in “Program” under “ST editor window”.
Summary of Contents for CONPROSYS nano CPSN-PCB271-S1-041
Page 21: ...21 CONPROSYS nano WEB Setting This section describes the product system and functions...
Page 49: ...49 CODESYS Installation This section describes the CODESYS installation procedure...
Page 118: ...Programing with CODESYS CPSN PCB271 S1 041 Reference Manual Software 118 5 END_CASE...
Page 122: ...Programing with CODESYS CPSN PCB271 S1 041 Reference Manual Software 122...
Page 133: ...133 Maintenance This section describes how to perform maintenance on the product...
Page 140: ...140 Appendix This section describes additional information of specification and the product...