Skip to content

Double Command - C_DC_NA_1 (T46) QU:0-1-2-3 #59

Open
@bambosd

Description

@bambosd

Hello and congratulations for bringing IEC 104 protocol to python community.

I'm trying to transfer a double command to a modbus TCP Server using library pymodbus.

There is a property of this command which is : no -short pulse - long pulse - persistent. 0-1-2-3

A. Is there any functionality to detect the type of qualifier for double command ?

B. if yes, how we can asynchronous execute the trigger function ?? (We need async because in case of short pulse the modbus write command will be modbus write the value (0 or 1 for on or off) and then time.sleep for 2-3 seconds and then write the value to 0 to properly simulate the pulse)
same goes for short pulse
for persistent is continuously write the same value to the target.(3)
for 0 qualifier (no) i really didn't understand protocol wise what is doing.

This time.sleep will stop all server functionality, that's why i'm asking if there is a possibility to work async.

Thanks for any comments or suggestions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions