Jump to content

AlexUT

Moderators
  • Posts

    837
  • Joined

  • Last visited

  • Days Won

    40

Posts posted by AlexUT

  1. Hi,

    1. Alfa-numeric value is a string.

    String occupy number of "characters"+1 Bytes. Last Byte is 0x00 - "zero" Byte which marks a string end.

    As a Unitronics PLCs store strings in vectors of MIs.

    MI store 2 Bytes.

    2. In your case stings include max. 6 characters.

    Required number of MIs in vector is (6+1)/2+1=7/2+1=3.5+1=4.5.

    Round it to lower number 4.

    So you need 4 MIs in vector.

    3. Use "String to ASCII" to store required string to MIs vector.

    image.png

    4.Use one of strings as text.

    image.png

    5. Click on "Vector Start Address" and select 1st MI of 4 secuential MIs.  For example MI 0.

    image.png

    6. Click on marked sign:

    image.png

    7. Enter comment with final space:

    image.png

    8. Add /4 to stringand press OK:

    image.png

    9.Click on OK again:

    image.png

    10. Use "Vector Start Offset" =0 and click OK.

    image.png

    11. Click OK again to finish.

    image.png

    12. Now you have vector of MIs, allocated for your string.

    image.png

    B.R.

     

    • Like 1
  2. Move to Vision topics.

    Translation (probable with some errors):

    capture npn square wave pulse signal. how to code the window x display the value.

    good morning I have to connect a liter meter to a pump I have a plc v700 how can I do the odice and the window to view the code, and at which port it will be ingput

     

  3. 14 hours ago, kratmel said:

    You can use modbus and Visilogic connection at the same time for debug.

    Hi All,

    Keep in mind that both interfaces of the same PLC COM port (RS485 at pins 1 and 6, and RS232 at pins 2,3,4,5) use the same hardware (UART) inside PLC.

    So you cannot use both RS485 at pins 1 and 6, and RS232 at pins 2,3,4,5 at the same time.

    BREAK signal at RS232, will switch COM port to PCOM protocol (default 7, E, 1) and will collide with RS485 interface.

    Conclusion:

    To use both interfaces, one by one, you have to have 2 cables:

    1. RS485 interface.

    2. RS232 interface.

    To make project download, you have to disconnect RS485 interface cable and connect RS232 interface cable.

    If PLC is a MODBUS Master - it will send MODBUS requests, which may interfer with PCOM protocol.

    To solve this - stop PLC from INFO mode to download project to PLC.

    Then connect RS485 interface and power cycle PLC.

     

  4. Unitronics PLCs has no embedded functions, like "regression function", etc.

    Look at Helpdesk article:

    Calculate Totalizing or Integral

    https://support.unitronics.com/index.php?/selfhelp/view-article/calculate-totalizing-or-integral

    In common, PLC scan time should be as small as possible.

    Complex functions will take long time and enlarge scan time.

    So if you decide to realize "regression function", you should take care to minimize disturbance to scan time.

    B.R.

     

    • Thanks 2
  5. Kratmel,

    I c annbot recommend this for field use.

    1. PLC attempting to read meter, and contineously will return COM port settings to RS485.

    2. When connecting PC and activate VisiLogic communication - PC send BREAK signal to RS232 and change protocol to PCOM (7, E, 1), which is not compatible for modem (8.N, 1).

    3. Possible colution (but not perfect) is to make COM INIT for RS485 and for RS232 in separate Nets.

    Use modem communication , then make COM INIOT for RS485 and read from meter.

    8Use 1 and 6 pins to connect meter.

    Use 2,3,4,5 pins to connect modem.

    This will not always work at field.

    B.R.

     

    *Both modes cannot be used.

×
×
  • Create New...