8/03/2010

CIMPLICITY Machine Edition Getting Started

http://www.cadfamily.com/downinfo/300479.html

Managing VariablesVariables are named storage spaces for data values defined in Machine Edition projects. A variable could store the current velocity of a motion controller motor, the height of a robotic arm, or any other value that an application needs to keep track of. Most variables in a project can be shared among various components and targets, such as View panels and Logic Developer - PCs ladder logic.

You manage variables in the Variables tab of the Navigator, also called the Variable List. Like most items in Machine Edition, you configure variables by editing their properties in the Inspector.The values a variable can store depends on its data type. For example, a DINT data type indicates that the variable can store Double Integers, 32-bit values. The location where a variables value is stored is indicated by its data source. Typically, a variables value is either stored internally in the targets memory or is retrieved (and sent) to external PLC hardware, via an I/O terminal or other connection. Available data types and data sources depend on the target type and (if applicable) components added to the target.You can also use arrays and structure data types in Machine Edition projects.

An array is a series of variable elements with identical data types, referenced by a 0-based index (as in MyArray[3]). A structure data type is a group of variable elements that may or may not have the same data type, referenced by the name of each element (as in MyStructure.MyElement). Custom structure data types are created with fxClasses in the Toolchest.

No comments: