Jump to content

AlexUT

Moderators
  • Posts

    837
  • Joined

  • Last visited

  • Days Won

    40

Posts posted by AlexUT

  1. 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.

     

  2. 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:

    phpdM1NUW

    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:

    php2CheaE

     

    phpcYFvqL

    Hope this solve your problem.

    BR,

  3. 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.

     

  4. 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.

    image.png

  5. 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.

     

  6. 12 hours ago, Syed_Uni said:

    I delete the data present in the excel spreadsheet

    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.

     

     

     

  7. 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?

     

  8. Hmmm...

    Everything is working.

    1. I have a bunch of folders with previous versions of UniLogic:

    image.png

    Where UniLogic is a last installed version (highest).

    2. All uninstalled versions (from UniLogic folder) are in separate folders, numbered by version  of uninstalled UniLogic.

    *You have to install lowest version first, than next one, and so one until you install last version.

    3. If you have trouble - delete all numbered versions, than uninstall last installed version.

    Now download all required versions and start installation from lowest version number.

    4. When you install UniLogic and previous version is already installed, Installer show you next pop-up:

    image.png

    Where "Keep a copy of the old version" check-box is checked.

    *You have to right-click at each downloaded file, select "Properties" and click on "Unblock" button if it is presented.

    *If your login account has no administrative privileges, than you have to run installation "As Administrator".

    *Last UniLogic versions know to require administrative privileges to run installation and to run UniLogic itself.

    *You can run on old version of UniLogic, but cannot run 2 versions at the same time.

    *To run old version, you have to close currently used UniLogic and kill from Task Manager "Unitronics Notifier" (in "Background Processes".

    *Use shortcut to run an old UniLogic version, or run it from old UniLogic version folder by running "Unitronics.Shell.UI.exe".

    *Double-click on *.ulpr file running last installed UniLogic version.

    Hope this information will help to keep required versions at your PC.

    B.R.

     

  9. 1. PID regulator, or Control Loop, is a complex.

    It include:

    - Controller (PLC)

    - Sensor/sensors (temperature, humidity, speed, pressure, flow, vacuum, etc.)

    - Actuators (vents, compressors, heaters, coolers, pumps, etc.)

    - Communication channels for sensors and actuators (0-10V, 4-20mA, PWM, VFD,  etc.)

    All this with it's timing (conversion delay, step response, acceleration/deceleration time, etc.)

    2. Changing any of control loop element(s) will lead to change of P, I, D and other Control Loop parameters.

    This means that with an optimal Control Loop parameters (current PID parameters set) you can replace any element for the same to have Control Loop working with the same efficiency.

    3. Change element type/model will require Control Loop parameters change to have Control Loop working with the same (or very similar) efficiency.

    4. Change PLC model leads to change of many parameters in Control Loop.

    As a result - you can use old parameters as estimate, than make manual PID tune, or run PID AutoTune.

    PID AutoTune will attempt to optimize Control Loop parameters.

    Hope this information helps to make Control Loop (PID) at new PLC as effective as an original one.

     

×
×
  • Create New...