SEW Driver Ethernet
13 min
review the following information for setting up and configuring the sew drive ethernet driver use this driver to read common industrial protocol (cip) objects on a sew eurodrive drive over ethernet/ip objects are addressed by class, instance, and attribute, and you can also read sew device parameters by index and subindex the driver samples status word 1 to track whether the drive's output stage is enabled you set a separate sampling interval for each state, and you can configure a parameter tag to poll only while the output stage is enabled all other tags poll on their own intervals this driver does not support browsing for devices use devicehub > asset discovery to find devices on the network compatibility table compatibility parameter compatible items driver type ethernet validated devices/series sew eurodrive drives how to configure the plc to set up and configure this device in manufacturing connect edge (mce), you will need to do the following step 1 set up and configure the plc device step 2 set up the plc device in manufacturing connect edge devicehub step 3 configure the list of registers step 1 set up and configure the plc device assign the drive an ip address that mce can reach confirm the drive accepts ethernet/ip connections on the port it is configured to use the driver defaults to port 44818 record the subaddress and subchannel the drive uses you enter both when you connect the device note the driver reads cip objects that are addressable by class, instance, and attribute refer to your drive's documentation for the objects it exposes and the attributes each one provides step 2 set up the plc device in manufacturing connect edge devicehub configure the following parameters when you connect a device with this driver update default values to the specific setup of your device parameter value type ethernet driver sew drive ethernet name a unique name for this device mce uses it to identify the device throughout the edge gateway, including in message broker topics and logs default is sew drive ethernet device description optional free text notes about this device, such as its physical location or purpose networkaddress the ip address of the device on the network default is 192 168 0 1 networkport the tcp or udp port used to communicate with the device default is 44818 the value must match the port configured on the device range is 0 to 65535 readtimeout the read timeout in milliseconds default is 3000 range is 10 to 10000 subaddress1 the drive's subaddress default is 0 range is 0 to 255 subchannel1 the drive's subchannel default is 0 range is 0 to 255 cip service type the cip service type, either connected or unconnected default is connected sw1 poll interval while output stage disabled (ms) how often status word 1 is sampled while the drive's output stage is disabled default is 50 range is 10 to 5000 sw1 poll interval while output stage enabled (ms) how often status word 1 is sampled while the drive's output stage is enabled default is 500 range is 50 to 10000 device specific properties property description subaddress1, subchannel1 different subaddresses and subchannels address different drive components subaddress1 = 1 and subchannel1 = 1 address the parameters of the communication and control unit (pfh) subaddress1 = 20 and subchannel1 = 3 address the parameters of the power section unit (pfa) cip service type odva cip defines connected messaging, which allocates resources, and unconnected messaging sew eurodrive drives support connected services only sw1 status word 1, bit 0 indicates the inverter status step 3 configure the list of registers when you add tags docid\ h5heqicxrcy3nch9kbg9i to the connected device, refer to the following register table and tag parameters refer to the following additional resources organize device and tag data by using metadata docid\ jouzsq77y8z4dt jdgct tag formula variables docid 4yhyz92z7ggpgswqp05tf register table this driver provides three register types the type you select determines which tag parameters appear and which value types are available name value types access types description attribute bool , uint8 , uint16 , uint32 , uint64 , int8 , int16 , int32 , int64 , float32 , float64 , string , bit\[] , uint8\[] , uint16\[] , uint32\[] , uint64\[] , int8\[] , int16\[] , int32\[] , int64\[] , float32\[] , float64\[] r/w a single cip attribute, addressed by class id, instance id, and attribute id attributerange string , uint8\[] , uint16\[] , uint32\[] , uint64\[] , int8\[] , int16\[] , int32\[] , int64\[] , float32\[] , float64\[] r/o a consecutive run of cip attributes read as one array, starting at the attribute id you enter parameter int32 r/o a sew device parameter, addressed by index and subindex rather than by cip class tag parameters the following parameters apply to every register type parameter value name select a register name from the drop down list available options depend on the names in the register table value type select a data type from the drop down list available options depend on the register name selected polling interval enter a value in seconds this determines how often the tag should poll the register for data enter 0 to disable polling tag name enter a name for the tag description (optional) enter a description for the tag tag formula enter a formula to process tag data see tag formula docid\ sdbxxyduwiz m585iqfhi below only publish on change of value select the checkbox to publish nats messages only when the value parameter changes to a new value change of value only applies to boolean, numeric (such as int or float), and simple string data types it does not apply to complex types, such as json or array poll once topics are not affected by change of value settings these topics will still only see a single message meta data metadata summarizes basic information about data this feature allows you to define key value pair data for the device output payload later on it can then be used to find, use, and reuse particular instances of data note if you use special characters in meta data key names, the special characters are replaced with underscore characters in the payload this can cause two key names to be combined into one for example, configuring the key names a b and a&\&b will cause only one key name to be created ( a b ) attribute parameters parameter value class id the cip class a class is a set of objects that all represent the same kind of system component range is 0 to 65535 instance id the cip object instance an object instance is one particular object within a class every instance of a class has the same set of attributes, each with its own values range is 0 to 65535 attribute id the attribute's identification value range is 0 to 65535 data hexadecimal data to send with the request optional response data offset the byte offset at which to start reading the response default is 0 range is 0 to 500 response data endianness the byte order of the response, either little endian or big endian default is little endian attributerange parameters parameter value class id the cip class a class is a set of objects that all represent the same kind of system component range is 0 to 65535 instance id the cip object instance an object instance is one particular object within a class every instance of a class has the same set of attributes, each with its own values range is 0 to 65535 attribute id the identification value of the first attribute in the range range is 0 to 65535 count the number of attributes to read default is 1 range is 1 to 65535 parameter parameters parameter value sew device index the parameter's index on the drive default is 8300 range is 0 to 65535 sew device subindex the parameter's subindex on the drive default is 0 range is 0 to 255 poll condition continuous polls the parameter on its own interval regardless of drive state output stage enabled polls it only while the drive's output stage is enabled default is output stage enabled browse parameters browsing scans the drive across ranges of cip classes, instances, and attributes, and returns the objects it finds narrow the ranges to shorten a scan parameter value scan range for classes the range of cip classes to scan default is 1 255 scan range for instances the range of object instances to scan default is 0 2 scan range for attributes the range of attributes to scan default is 1 10 tag formula enter a formula for the tag to process the generated data two variables are permitted value (current tag value) and timestamp (current tag unix time in milliseconds) the following math functions are available function description sin sine cos cosine sqrt square root tan tangent power(x) performs the operation 10^x log(x) natural logarithm (base e) exp(x) performs the operation e^x