Jump to content

AlexUT

Moderators
  • Posts

    844
  • Joined

  • Last visited

  • Days Won

    40

Posts posted by AlexUT

  1. Hi,

    PLC most important task is to process Ladder code.

    If you need contineous fast drawing, you can split you system into 2 parts:

    1.PLC 1 - Minimum drawing, but fast Ladder processing - it may be slowest PLC then you have now.

    2.PLC 2 - V1210, used mostly for contineous fast drawing. It's scan time will not disturb for scan time of the first PLC.

    And you can use V1210 for other tasks.

    What you need to do - organize fast communication between PLC 1 and PLC 2. I hope you will have good working system.

    *Fastest CPU is not the better solution, as in most of cases this require re-design.

    B.R.

  2. For 9600 bps bitrate time to transmit 1 bit is 1/9600=1.0416666666666666666666666666667e-4 Sec

    Top transmitt 1 Byte with all surrounding bits time = 0.00125 Sec.

    MODBUS Request for your case have 8 Bytes.

    Thansmittion time 0.00125*8=0.010 Sec.

    Replay for 64 MBs have 13 Bytes.

    Thansmittion time 0.00125*13=0.01625 Sec.

    Clean time between activate MODBUS Request and receiving all Bytes of reply is 0.02625 Sec.

    Add to this processing time at both sides and other delays.

    This is a time from MODBUS request, when data will be updated.

    You can change COM port bitrate, if it is applicable.

    This will make replay fastest.

    Now look for PLC scan time. You cannot read reply fastest that next scan.

    This is communication timing for your configuration.

    • Upvote 1
  3. Hi,

    Right-click on VisiLogic installation file, select "Properties" and Unblock it. Then run installation.

    *Your PC account should have an administrative rights. If not - run installation file as administrator.

    It will first uninstall previously installed version.

    Run installation file as administrator again and finish installation.

    Run VisiLogic as Administrator if needs.

    I hope this fix error message.

    B.R.

  4. Hi,

    Default communication settings for U90Ladder are 9600, 7, N, 1. MODBUS require 9600, 8, N, 1.

    Check if Break is disabled or not. Break signal reset communication settings to default to allow U90Ladder communication.

    You can change communication settings to 9600, 8, N, 1 and check again.

    Or enter Info mode and change to "SYSTEM->STOP ?" and stop program. This allow to restore communication.

  5. Hello Sohel,

    VisiLogic Help have a good explanation of all LoadCell functions. I recommend you to start from Loadcell Quickstart.

    Following links will help you:

    http://www.unitronics.com/KnowledgeBase/U90Ladder/Ladder/Functions/Special_functions/Loadcell/loadcell.htm

    http://www.unitronics.com/Downloads/Support/Technical%20Library/IO%20expansion%20modules/IO%20Expansions/IO-LC1%20IO-LC3.pdf

     

    Go to Menu->Help->Examples, open directory

    C:\Program Files (x86)\Unitronics\Unitronics VisiLogic_C\Examples\Version 900\Project examples\Loadcell

    and open one of examples.

    At the time you know to work with Load Cell modules, you will know how to convince your Customers.

    I hope this helps.

  6. Hi,

    You can find HSC connection diagram in PLC specification.

    http://www.unitronics.com/Downloads/Support/Technical%20Library/M90M91%20Hardware/M91%E2%84%A2%20-%20Specifications/M91-2-R1.pdf

     

    You have to use special registers when programming.

    You have to evaluate, if PLC Ladder can fit process timing requirements.

     

    As well, you have to manage motor speed, and stop it somehow. Is it AC/DC/Stepper motor? Solution will be different.

  7. Edwin,

    Bytes [41] [72] [74] [2D] [4E] [65] [74] [00] [00] [50] [00] [0E] [00] [01] [00] [00] [00] [02] [64] [C8] will be converted to MIs in PLC memory (and vice versa)

    [72][41]->[7241]
    [2D][74]->[2D74]
    [65][4E]->[654E]
    [00][74]->[0074]
    [50][00]->[5000]
    [0E][00]->[0E00]
    [01][00]->[0100]
    [00][00]->[0000]
    [02][00]->[0200]
    [C8][64]->[C864]
    This is how data in MIs looks.

    PLC transmits LSB Byte first (the Right one) then MSB (the left one), etc. until the last Byte being transmitted.

    I am not knowing, how received data is transposed by device controller.

    But I will recommend you to transpose all MIs - swap bytes - and transmit again.

    Or you can use well known program, working via Art-Net to DMX interface and capture Ethernet traffic. Then you can see how Ethernet/IP packet designed.

  8. Hi Edvin,

    String will be like next:
    *I show MI content as 2 bytes.
    Bytes are in ASCII for string, in Decimal for numbers. HEX notation will be 0x00 for Byte or 0x0000 for MI.

    ID
    [Art-Net][0]
    [r][A]
    [-][t]
    [e][N]
    [0][t]
    *you can use String to ASCII to form this string.

    OpCode
    [0][0]

    ProtVerHi
    [0]
    ProtVerLo
    [14]
    [0][14]

    Sequence
    [0]
    Physical
    [0]
    [0][0]

    SubUni
    [0]

    Net
    [0]
    [0][0]
    SubUni and Net seems to be a start address of your device, which you configured.

    LengthHi
    [0]

    LengthLo
    [0]
    [0][0]

    Length encoded in 2 Bytes, as it will be up to 512. Length is a number of Bytes in Data. Data is variable.

    Data (in Bytes)
    [x][x]...[x][x]

     

    Full packet:
    [r][A]; 7 MIs is a constant header.
    [-][t]
    [e][N]
    [0][t]
    [0][0]
    [0][14]
    [0][0]
    [0][2]
    [127][127]; This is data for your device. Test [0][0] for off, [127][127] for middle, [255][255] for full intencity (in case of LEDs).

    I recommend you to allocate vector of max length (header+512 Bytes, 8+256 MIs) for buffer, and use "Protocol TCP/IP Send" to send buffer as a Stream with Indirect length.

    This will allow you to send wariable data.

    I hope this helps.

  9. Hi Edwin,

    Set socket as TCP RAW.

    Then use TCP Protocol to send message, composed in accordance to DMX rules.

    *DMX device in most of cases include number of addressable registers.

    You select 1st register address in DMX device configuration.

    Details is dependent of used device and it's commands.

    You have to have this device tested and working.

    Most of manufacturers of DMX devices include test programs to test DMX adapters and DMX devices functionality.

    Tell more about used device and answer will be mo detailed.

    I hope this helps.

×
×
  • Create New...