Jump to content

AlexUT

Moderators
  • Posts

    844
  • Joined

  • Last visited

  • Days Won

    40

Everything posted by AlexUT

  1. Hi, I recommend you to use Unitronics approved USB-to-Serial converters. You can find converters by contacting your local distributor in your country. MJ20-PRG is isolated, and require external power, which is obtained from USB-to-Serial converter, DSR for example. Your USB-to-Serial converter will be simplest one, which use only Rx and Tx lines. So it cannot supply power to PRJ adapter. B.R.
  2. HiMikahB, You refer to 10V exitation. It is not relevant to LC1/LC3. You have to use internal LC1/LC3, which is 5V DC or AC. External exitation not allowed. Calibration should be done with a real weight/force to have reliable working (and safe) system.
  3. You can define 00:00:00.00 time in DRUM, then use separate timer values for each DRUM step from Data Table. Data Table will include sets of timers and other parameters for DRUM. When timer ends - issue command "Go to next step" and DRUM will shange state. This way you can use recipies.
  4. Thank you for your ideas. We are open for everything, what will improve PLCs. I hope, you can finish your project, when choise right hardware from existing one and optimize its' use. B.R.
  5. Hi, Can you send you project to support@unitronics .com to simulate your problem? Add information about system files versions, used VisiLogic version. Do you connect PLC to your company network? May be some kind of traffic is blocked? We tested our examples on ADSL line with GMX email servers, B.R.
  6. 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.
  7. 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.
  8. After activating MODBUS FB, result will be known in the next System Scan, or after number of scans. Dependent of communication speed, collision etc. What is communication speed? What is a Slave device?
  9. Hi dulu, As Will explained - there are many factors impacting communication. Look for MODBUS "Function in Progress" and "Status". To evaluate number of errors, you can check "Total" and "Acknowledged" number of sessions. You can adjust "Retry" and "Timeout" in "MODBUS Configuration". BR
  10. Hi, Question answered in other post: http://forum.unitronics.com/index.php?/topic/3292-run-time-error-32811/#entry11995
  11. 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.
  12. Hi, Speed is wery slow to measure it as a frequency. You can measure interval between 2 sequential pulses and use formula. And you need a conveyor status bit, which means if conveyor is in start or stop. Stop mode will disable speed calculation. B.R.
  13. Hi, I tested port 25, and received "connection timeout". For ESMTP you should use port number 587, but it return message: "554 mail9.tpg.com.au ESMTP not accepting messages". You can test this configuration if it works or not to send email. You have to request IP address and other email server settings from your email provider. B.R.
  14. Hi, Please send your EXF-RC15 project to support@unitronics.com for review. You can add V130 project for CAN access simulation.
  15. 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.
  16. Hi, What is a format of data string from Scale? Is number of transmittet characters fixed or floating? What is a pause between messages? B.R.
  17. Hi, Please check PLC and IO modules for Ground loop. Are TC isolatedfrom body, where temperature measured. B.R.
  18. Hi, Please send your project to support@unitronics.com for review. B.R.
  19. Hi, Please send your project to support@unitronics.com for review. B.R.
  20. 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.
  21. It seems that you use the same COM port to communicate to frequency converter and PC. PC use PCOM protocol to connect to PLC. Frequency converter use MODBUS protocol. Only one protocol can be active, not both. You can send your project to support@unitronics.com for review.
  22. 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.
  23. 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.
  24. 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.
  25. 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...