1/14/2014 9:32 AM | |
Joined: 10/11/2006 Last visit: 9/9/2024 Posts: 5902 Rating:
|
Hello, you find the basics of ST Programming in the following manual. 2.4 Creating a sample program 3.5 Variable declaration http://support.automation.siemens.com/WW/view/en/61056268Table 3- 21 Examples of variable declarations VAR CONSTANT PI : REAL := 3.1415; END_VAR VAR // Declaration of a variable ... var1 : REAL; // ... or if there are several variables of the same type: var2, var3, var4 : INT; // Declaration of a one-dimensional array: a1 : ARRAY[0..199] OF Byte; // Declaration of a character string: str1 : STRING[40]; END_VAR |
With best regards, |
|
1/15/2014 11:30 AM | |
Joined: 10/11/2006 Last visit: 9/9/2024 Posts: 5902 Rating:
|
Hello, // Send data myData[0] := 170; |
With best regards, |
|
Follow us on