
- Introduction
- Tutorial videos
- Getting started with myDESIGNER
- Checking project
- Projects’ visual appearance
- GUI/HMI Editor
- Creating views
- Selecting objects
- Drawing primitives
- Creating text elements
- Insert image
- Poly-lines
- Moving objects
- Resizing objects
- Rotating objects
- Skewing objects
- Filleting
- Combining objects
- Fill and stroke
- Rulers and guides
- Layers
- Copying and pasting elements
- Object's order
- Grouping
- Repeated actions mode
- View scripts
- Used tags
- Zoom on zone
- Undo and redo
- View properties
- Components
- Components library
- Active area
- Layout views
- Entering tags and math expressions
- Tree tags database
- Formatting numerical values
- Linking views with PLC
- Time Sequence
- Open command
- Write/Set command
- Scaling set values
- Key shortcuts
- On touch
- Parametric views
- View scripts
- View scripts - list of functions
- Documents
- Reports
- CAS alarms
- Data logging
- Data - Log views
- Aggregated data logs
- Advanced trends
- Connections
- User accesses
- Multi - language support
- Server-side scripts
- Introduction
- Server-side scripts folder
- Server-side scripts folder structure
- Variables tables
- Script data-logs
- Global variables
- Sources folder
- Organizing project into modules
- Importing modules
- Using the event-driven asynchronous callbacks
- Creating server side reports
- mySCADA specific functions
- Debugging
- Script status (on myBOX devices only)
- Ser2Net (on myBOX devices only)
- View and server side scripts – common tasks
- Graphical guides
- Read/Write data from/to PLC
- Generating report
- Other guides
- Server side scripts – examples
- Reading data from PLC
- Writing data into PLC
- Timers – eg. run code in given time intervals
- Scheduled execution e.g run code every Monday at 2:00 PM
- Generating a report at given time interval
- Limiting access to generated files
- Processing data-log data
- Exporting data-log data into CSV files
- Using virtual PLC
- Sending data from view script into server side scripts
- Devices
- EtherNet/IP driver
- MicroLogix and SLC driver
- Modbus driver
- Siemens S7 family PLCs driver
- OPC UA driver
- MELSEC-Q driver
- SigFox driver
- Databases driver
- Download/Upload from/to device
- Recipes
- Running hours
- Timeline
- mySCADA TIA portal connector
22.2.Declaring variables #
You can declare your variables in the Variables Window:
There are four types of variables to use:
- Input variables: use these variables for reading data from the PLC; each time the script is evaluated it first reads the PLC tags and stores them in the input variables
- Output variables: after the script evaluation, the output variable values are written into the PLC; you can set whether it will write the value each time the script is evaluated or only upon change – this is controlled via the Update field (Always, On Change)
- Value Memory: here you can declare your persistent variables; when a view is loaded, memory variable has its default value; you can change this value in the script and it will prevail until you switch to a different view or close the application
- String Memory: String Memory variables are the same as Value Memory variables, but are of string type