Esecuzione task Modbus da Script VB

Esecuzione task Modbus da Script VB

  • 17 luglio 2019 alle 3:37 pm #34039
    andrea.richieri
    Partecipante

    Buongiorno,
    avrei necessità di configurare varie tasks Modbus RTU per poi richiamarle da un sequenziatore scritto in VB.
    Su Movicon 11 facevo una cosa analoga con driver Omron ed eseguivo le interrogazioni da script.
    E’ possibile farlo su Next? Esiste documentazione sulla gestione I/O Drivers da script VB?
    Grazie

  • 19 luglio 2019 alle 3:53 pm #34122
    Robin
    Partecipante

    Hi Andrea,
    Have you evaluate the conditional variable option present in the variables communication task properties?

    Conditional Variable

    This is used to associate a project variable whose state will determine the conditioned execution of the communication task.
    You can use the selection button, on the top right border, to select any one of the variables (Tags) that were previously inserted in the project’s RealTime Database resource.
    The variable (of any type) will condition the task’s execution: when set at a value ‘different from zero’ (>< 0) the communication task will be executed by the driver.

    Once the task execution has terminated successfully, the driver will automatically set the associated variable value to zero.

    here the help :

    http://www.movicon.info/HelpNExT3.4/en-US/PlatformNext.htm#t=mergedProjects%2FDrivers%2FmergedProjects%2FDrivers%2FGeneral%2FTask_Settings.htm

    Robin

  • 24 luglio 2019 alle 3:29 pm #34154
    andrea.richieri
    Partecipante

    Ok Robin, grazie del suggerimento.
    Saluti

    Andrea

Devi essere loggato per rispondere a questa discussione.