This is historical information of device classes implemented in PyPLC device server.

Use this link to find the valid information.

Development status: Released
Information status: New

Contact:



Class Description


This device server will allow to interact with the Modbus PLC`s.
The target is reading and writing variables and input/outputs of the PLC by using Tango Attributes. Tango Attributes will be generated dynamically using this syntax:

Families: InputOutput

Key words:

Language: Python

License:

Contact:

Class interface


Attributes:

Commands:

Name Description
StateInput: DevVoid
Output: State
This command gets the device state (stored in its device_state data member) and returns it to the caller.
StatusInput: DevVoid
Output: DevString
This command gets the device status (stored in its device_status data member) and returns it to the caller.
RegInput: DevShort
Output: DevShort
None.
HoldingRegInput: DevShort
Output: DevShort
None.
InputRegInput: DevShort
Output: DevShort
None.
IeeeFloatInput: DevShort
Output: DevVarLongArray
None.
CoilInput: DevShort
Output: DevShort
None.
FlagInput: DevVarShortArray
Output: DevShort
None.
BitInput: DevVarShortArray
Output: DevShort
None.
RegsInput: DevVarShortArray
Output: DevVarShortArray
None.
HoldingRegsInput: DevVarShortArray
Output: DevVarShortArray
None.
InputRegsInput: DevVarShortArray
Output: DevVarShortArray
None.
Regs32Input: DevVarShortArray
Output: DevVarLongArray
None.
CoilsInput: DevVarShortArray
Output: DevVarShortArray
None.
WriteIntInput: DevVarShortArray
Output: DevVoid
None.
WriteLongInput: DevVarLongArray
Output: DevVoid
None.
WriteFloatInput: DevVarStringArray
Output: DevString
None.
WriteCoilInput: DevVarShortArray
Output: DevVoid
None.
WriteFlagInput: DevVarShortArray
Output: DevVoid
None.
updateDynamicAttributesInput: DevVoid
Output: DevVoid
None.
evaluateFormulaInput: DevString
Output: DevString
None.
isLockedInput: DevVoid
Output: DevBoolean
None.
LockInput: DevVoid
Output: DevVoid
None.
UnlockInput: DevVoid
Output: DevVoid
None.
setLogLevelInput: DevString
Output: DevVoid
None.
SetModbusCacheConfigInput: DevVoid
Output: DevString
None.
ReconnectInput: DevVoid
Output: DevString
None.

Pipes:

Properties:

Name Description
Modbus_nameDevString The name of the Modbus Tango Device used to communicate with the PLC. All the information related to the communication must be specified using the Modbus device properties.
LogLevelDevString Default console output configuration.
MaxModbusQuerySizeDevLong Maximum amount of data that can be asked in a single Modbus request.
MappingString[]Type Arrays to be permanently updated, declared like : ARRAY:0,+120 #(VarName:StartAddress,+ArrayLength)
ModbusCacheConfigDevLong If ModbusCacheConfig>0 then it will update CacheConfig and CacheSleep properties of the Modbus device using Mapping values.
ModbusTimeWaitDevLong Number of milliseconds to wait between asynchronous Modbus calls
DefaultReadCommandDevString Default read command executed by Reg and Regs commands
AddressOffsetDevLong Integer offset added to Addresses in every Modbus command call.
ErrorTimeWaitDevLong Number of milliseconds between retries after a Modbus error
DynamicAttributesString[]Type Attributes and formulas to create for this device. This Tango Attributes will be generated dynamically using this syntax: T3=int(Reg(7007)/10.) The commands Coil; Flag; Reg and fReg will allow to declare Digital; Bit; Integer and Float variables respectively.
DynamicStatesString[]Type This property will allow to declare new States dinamically based on dynamic attributes changes. The function Attr will allow to use the value of attributes in formulas. ALARM=Attr(T1)>70 OK=1
DynamicQualitiesString[]Type This property will allow to declare formulas for Attribute Qualities.
DynamicStatusString[]Type Each line generated by this property code will be added to status
KeepAttributesString[]Type This property can be used to store the values of only needed attributes; values are `yes`, `no` or a list of attribute names
KeepTimeDevDouble The kept value will be returned if a kept value is re-asked within this milliseconds time (Cache).
CheckDependenciesDevBoolean This property manages if dependencies between attributes are used to check readability.
UseEventsString[]Type Value of this property will be yes/true,no/false or a list of attributes that will trigger push_event (if configured from jive)
LogLevelDevString This property selects the log level (DEBUG/INFO/WARNING/ERROR)

22 Feb 2018, DS Admin
Updated:
The device class has been updated.
You can see previous version here .



20 Apr 2017, Piotr Goryl
Updated:
The device class has been updated.
You are looking at this version now.



23 Feb 2017, Piotr Goryl
Created:
The device class has been added to catalogue.
Added by:pgoryl2 on:20 Apr 2017, 1:10 p.m.