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

    Topics

    • T

      Neuron S103-G - GPRS modem not working

      Watching Ignoring Scheduled Pinned Locked Moved Neuron Series
      2
      0 Votes
      2 Posts
      703 Views
      T
      Hello @tmmke, the baudrate and other parameters should be configured as decribed in the product information https://www.unipi.technology/unipi-neuron-s103-g-p107?categoryId=8 If you are using the latest Mervis IDE and Mervis OS 2.3.0, you do not need to worry about the setting the GPIO18, which is done automatically. To send the SMS, you can follow similar tutorial https://kb.unipi.technology/en:sw:01-mervis:sending-sms-hidden GPRS (internet) connectivity is not supported in Mervis and has to be done manually in the Linux as discussed here https://forum.unipi.technology/topic/463/s103-g-use-gsm-gprs-module-to-connect-to-internet/7 Note: The modem cannot send SMS and provide GPRS connectivity at the same time!
    • T

      Function block - variable number of inputs

      Watching Ignoring Scheduled Pinned Locked Moved Mervis function block
      2
      0 Votes
      2 Posts
      692 Views
      T
      This is not a standard feature of ST or FBD but there is a small hack to achieve this. See the example below. It only works if the input variable is named "in" (the same works for output variable named "out") and the type is array. FUNCTION InDemo : LINT VAR i : INT; END_VAR VAR_INPUT In : ARRAY[0..63] OF BOOL; END_VAR (*function block's body*) result := 0; FOR i := 0 TO 63 DO // nejaky kod IF In[i] THEN result := result + 1; END_IF; END_FOR; InDemo := result; END_FUNCTION