Jump to content

AlexUT

Moderators
  • Posts

    844
  • Joined

  • Last visited

  • Days Won

    40

Everything posted by AlexUT

  1. You have to take care: 1. "String" variable in Data Table limited to 20 characters and should not be terminated by 0x00 symbol. 2. "String" variable in PLC MIs vector limited to 20 characters and should be terminated by 0x00 symbol. So you have to allocate (20+1)/2, rounded up. I.e. 11 MIs. 3. It is good practice to clean (fill by 0x00) used for string MIs vectors. .
  2. 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.
  3. It is preferred to ask machine manufacturer about backup. Bacup may be not available. B.R.
  4. 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.
  5. Hi Tomas, All Unitronics PLCs are designed to work with supported modems "peer-to-peer" by use of RS232 interface. RS485 interfacce cannot be used. B.R.
  6. Nicola, You may check for short circuit between 0V and H, 0V and L, H and L on CANBUS connector. Resistance should be tens of kilobytes. *Disconnect cable before you make measyrement. For example, resistance between H and L is near 36 kB for V570, V1xxx. Low resistance or shortcut point to hardware problem.
  7. You have to correct linearization, dependent of resolution you selected in Hardware Configuration.:
  8. Hi, We are not experienced in Passperry Pi. 1. Do youuse any MODBUS Library at Raspberry Pi side? 1.1. How it is configured? 2. All sockets at V700 side are configured as SLAVE. To use CONNECT, used socket should be configured as MASTER. 3. MB 901 has no coil. So when it is set? 4. You should not send CONNECT at each PLC Scan. Do it with timer 1 sec. 5. Check in INFO mode MODBUS Socket status. 6. If socket status is CONNECTED - activate MONITOR->HEX for MODBUS socket and check send/receive content. This will show you what PLC send to RPi and what PLC receive back.
  9. Hi pascal and all, There was unit FW changes and we will update UniLogic for the next release, currently to solve this: Don't configure on HW config, but use the 4 bits for each channel on the struct to set the mode according to the mapping below: The spec was changed by the manufacturer since FW version 1.02 (component change due to shortages). The module will work, just numbering changed, so UP is 0x00 and Frequency is still 0x0D but both channels have to be set like that: Hope this solve your problem. BR,
  10. VisiLogic does not support C language, only Ladder diagram. You have to convert your FOR cycle to Ladder logic. *You can realize this Ladder code as subroutine. **Bear in mind that you can process small table search in one scan. If operation is long - you have to split Ladder "FOR" code into number of scans. Ideal is 1 to 10 operations per scan. This will save scan time short.
  11. Hi, Set baud rate to 115200, 8, N, 1. Timeout 10 sec, retry 3. Does communication works now?
  12. 1. You have to pass to Parce function full message. In case you youse RS232 ot low speed, PLC will read fragments of full message at each scan. To read a full message, you have to check "Last Bytes waiting in Buffer" for your RS232 to be a string termination character, And only then read buffer. After this you can parce buffer content.
  13. Did you check this battery for radiation? It may be Uranium/Radium battery!
  14. If C-subroutine does not include errors - it working fine. At this time all errors (like you described) are at programmer responcibility. B.R.
  15. You can start by reading comments in C-Examples. Then follow recommendations. There are some limitations in PLC C-code realization. B.R.
  16. Hi Chai, Forum members cannot help you with Router System Log. Please send file to support@unitronics.com B.R.
  17. 1. Make firmware upgrade/downgrade to versions supported by VisiLogic. *Check firmware and then open "Advanced" and select last versions of firmware files from list. 2. When finished - do "Restore all System Images". Load empty projec with only one text field for keypad entry and test. 3. Download your project and test. Does this solve problem?
  18. Mark "Overwrite udt file" instead of "Append udt file"
  19. In Ladder, where you use STORE TO DATA TABLE, use OVERWRITE, not APPEND. Review example: C:\Program Files (x86)\Unitronics\Unitronics VisiLogic_C\Examples\Version 900\Project examples\SD\V570_SD_card_demo.vlp
  20. Message exactly explain situation. UDT file with appended sections cannot be edited. You have to use OVERWRITE option to be able to edit UDT file.
  21. You can review Unitronics Helpdesk Article to find some answers: https://support.unitronics.com/index.php?/selfhelp/view-article/rtsp---ip-camera-general-information-and-setting As there are many cameras at market - you have to read camera manual and make integration tests. There are some test cameras on Internet. You can Google and test. You can review Unitronics Helpdesk Article to find some answers: https://support.unitronics.com/index.php?/selfhelp/view-article/rtsp---ip-camera-general-information-and-setting As there are many cameras at market - you have to read camera manual and make integration tests. There are some test cameras on Internet. You can Google for "online internet ip camera test" and make check. You can use VLC media player for test.
  22. Use intermediate tag as PID Output. Store to this tag PID Output or your value you set manually. B.R.
  23. Problem may be here - if data deleted from file, but an empty file updated on SD. This file may be stored in Excel format, but original format is COMA DELIMITED ASCII. This is why file cannot be modified by PLC. Right way to eject card from PLC: 1. Stop any SD card activity at PLC - do not store data to Micro SD when you prepare to eject it. 2. Use Ladder code to unmount Micro SD card, and only then physically eject Micro SD from PLC. *Inserting Micro SD back to PLC does not require any additional operation. *As you stopped storing data to Micro SD before ejecting it, you have to allow storing data to Micro SD again. Right way to transfer file from Micro SD card to PC: 1. Insert Micro SD to PC. 2. Move required file to PC, so this file will be no more presented on Micro SD. 3. Close File Explorer window with Micro SD card content or change view to outside of Micro SD card. 4. Eject Micro SD card by use of System Try Icon. 5. Physically eject Micro SD card from PC and move it to PLC. You can find SD card eject details in VisiLogic Help.
  24. One of connection parameters is a source port number. Regular OS (*nix, Windows) incrementing used port number, and thus you can define that there is a new connection, even from the same IP address. Is Sigmatek capable to increment port number?
  25. Unitronics has a small HelpDesk article about this: https://support.unitronics.com/index.php?/selfhelp/view-article/using-sd-card-extenders-with-unitronics-plcs B.R.
×
×
  • Create New...