beckhoff TwinCAT 2 PLC Control — 10.4 Data Types

Appendix Example of a command file: A command file like shown below will open the project file ampel.pro, will then load a watch list, which was stored as w.wtc, will then start the application program and write - after 1 second delay - the values of the variables into the watch list watch.wtc (which will be saved) and will finally close the project. file open C:\work\projects\ampel.pro query off ok watchlist load c:\work\w.wtc online login online run delay 1000 CreateBootproject watchlist read watchlist save c:\work\watch.wtc online logout file close 10.4 Data Types You can use standard data types and user-defined data types when programming.

Each identifier is assigned to a data type which dictates how much memory space will be reserved and what type of values it stores. NOTE Data loss The different data types cover different value ranges. If type conversions from bigger to smaller types are used, information may get lost. TwinCAT 2 PLC Control 295 Version: 1.0 Commands Description Reset If you have initialized the variables with a specific value, then this command will reset the variables to the initialized value. ResetAll This command resets all variables including the persistent ones to their initialization values and erases the user program on the controller.

CreateBootproject With this command the compiled project is set up on the controller. ChooseRuntime A specific Runtime System can be chosen. For use the Net-Id and seperated with ":" the port number. Example:ChooseRuntime 172.16.77.23.1.1:811 or ChooseRuntime 5.2.122.255.1.1:801