• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Shares 0
    • Posts 2
    • Groups 0
    P Offline
    1. Home
    2. Patrik
    3. Topics

    Topics

    • P

      Připojení k neuronu z pc a čtení/zápis hodnot

      Watching Ignoring Scheduled Pinned Locked Moved Mervis
      4
      0 Votes
      4 Posts
      2k Views
      Martin KudláčekM
      Dobrý den Dalibore, toto je velmi jednoduché. V MervisIDE přidáte na PLC "Serverový kanál" a nastavíte protokol na ModbusTCP. Přidáte serverové zařízení, nastavíte mu IP adresu, port a modbusovou adresu, na které bude přístupné. V detailu zařízení pak namapujete registry a coily na příslušné proměnné. K proměnným pak přistupujete přes síť z libovolného Modbus Master zařízení / programu. Místo ModbusTCP je možné použít i ModbusRTU, kde nakonfigurujete příslušný RS485 port a nastavíte modbusovou adresu. Nemám ověřenou funkcionalitu na starém IDE (2.0.x), ale v novém, které bude začátkem září je toto plně funkční. Martin
    • P

      SOAP request

      Watching Ignoring Scheduled Pinned Locked Moved Official API - Evok
      2
      0 Votes
      2 Posts
      2k Views
      T
      Device types come from the following list (and otherwise correspond to the device path in the Rest API): 'relay', 'input', 'ai', 'ao', 'ee', 'sensor', 'i2cbus', 'adchip', 'owbus', 'mcp', 'gpiobus', 'pca9685', 'ds2408', 'unipi2', 'uart', 'neuron', 'board', 'misc_output', 'led', 'watchdog', 'register', 'wifi', 'light_channel', 'light_device' and the "circuit" is the device name as specified in the configuration file. As an example for UniPi 1.1: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:unip="http://192.168.1.146:8081/UniPiQueryService"> <soapenv:Header/> <soapenv:Body> <unip1:SoapQueryInputList xmlns:unip1="http://127.0.1.1:8081/UniPiQueryService"> <!--1 or more repetitions:--> <single_query> <device_circuit>1</device_circuit> <device_type>relay</device_type> </single_query> </unip1:SoapQueryInputList> </soapenv:Body> </soapenv:Envelope> An example for setting relays: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:unip="http://127.0.1.1:8081/UniPiCommandService"> <soapenv:Header/> <soapenv:Body> <unip:SoapCommandInputList> <!--1 or more repetitions:--> <single_command> <device_circuit>1</device_circuit> <device_type>relay</device_type> <!--1 or more repetitions:--> <property_item> <property_name>value</property_name> <property_value>"0"</property_value> </property_item> </single_command> <single_command> <device_circuit>2</device_circuit> <device_type>relay</device_type> <!--1 or more repetitions:--> <property_item> <property_name>value</property_name> <property_value>"1"</property_value> </property_item> </single_command> <single_command> <device_circuit>3</device_circuit> <device_type>relay</device_type> <!--1 or more repetitions:--> <property_item> <property_name>value</property_name> <property_value>"1"</property_value> </property_item> </single_command> </unip:SoapCommandInputList> </soapenv:Body> </soapenv:Envelope> We'll try to provide the examples in the documentation in the next EVOK release.