quote:以下是引用Automann在2012-07-29 23:50:39的发言:quote:以下是引用ashore07在2012-07-29 21:47:39的发言:quote:以下是引用Automann在2012-07-29 19:32:22的发言:
STEP7帮助的附录中有数据类型的详细资料。
我想不明白 ,struct 为啥至少2byte
point 的6byte 是怎么分布的
你看了帮助了吗?
A structure (STRUCT) is a complex data type that can be nested in up to eight levels. The elements of a structure can be of any valid data type (except parameter types). The STRUCT data type must consist of at least two components, which must be located between STRUCT and END_STRUCT. A structure can be declared in the variable declaration table of a logic block or in a user-defined data type (UDT).
Using
you can access the individual variables of a structure in the user program. A structure within another structure only counts as a component.