OPC Items Transformation Types
Transformation Type String | Data Point Element Type (WinCC OA) |
UCHAR | char |
INT16 | int |
UINT16 | uint |
INT32 | int |
UINT32 | uint |
INT64 | long |
UINT64 | ulong |
FLOAT32 | float |
FLOAT64 | double |
BOOL | boolean |
STRING | string 4096 bytes |
TIME | time |
UCHAR_ARRAY | dyn_char |
INT16_ARRAY | dyn_int |
UINT16_ARRAY | dyn_uint |
INT32_ARRAY | dyn_int |
UINT32_ARRAY | dyn_uint |
INT64_ARRAY | dyn_long |
UINT64_ARRAY | dyn_ulong |
FLOAT32_ARRAY | dyn_float |
FLOAT64_ARRAY | dyn_float |
BOOL_ARRAY | dyn_boolean |
STRING_ARRAY | dyn_string |
TIME_ARRAY | dyn_time |
In the current version of Desigo CC, to modify OPC items of array type and output direction (O) you have to implement a script. See the script example below.
///ApplicationView_Logics_Scripts_ArrayOutput.ArrayOutput.v=0_0.b=3_0_0038_0.10001.Array Output.
// Strict mode makes it easier to write "secure" code, introducing better error-checking
'use strict';
/*
* Press CTRL+Space for suggestion on the commands you can use.
* Press F1 for additional help and for a list of examples.
*/
//StringArrayOutput
executePropertyCommand("System1.ManagementView:ManagementView.FieldNetworks.OPC_Net.Server_Softing.Group_Output.String_Array_Output","Value","Write",["SAMPLE TEXT1","TEST2","STRING3"])
//AnalogArrayOutput
executePropertyCommand("System1.ManagementView:ManagementView.FieldNetworks.OPC_Net.Server_Softing.Group_Output.R8_Array_Output","Value","Write",["-3.1","1","0"])
executePropertyCommand("System1.ManagementView:ManagementView.FieldNetworks.OPC_Net.Server_Matrikon.Group_3.AnalogOutput1","Value","Write",["3.1","1","0"])
//IntArrayOutput
executePropertyCommand("System1.ManagementView:ManagementView.FieldNetworks.OPC_Net.Server_Softing.Group_Output.INT_Array_Output","Value","Write",["245","-567","100000"])
//DateArrayOutput
var a = new Date(2017,5,5,16,26,40,500)
var b = new Date(2018,6,6,16,26,40,500)
executePropertyCommand("System1.ManagementView:ManagementView.FieldNetworks.OPC_Net.Server_Softing.Group_Output.Time_Array_Output","Value","Write",[a, b])
console(a)
console(b)
//CharArrayOutput
executePropertyCommand("System1.ManagementView:ManagementView.FieldNetworks.OPC_Net.Server_Softing.Group_Output.UI1_Array_Output","Value","Write",["d","e","c"])