...
Komunikácia bola testovaná voči virtuálnemu aj fyzickému B&R PLC s PVI verziami:
- Automation Net PVI V4.0
- Automation Net PVI V4.2
- Automation Net PVI V4.3
- Automation Net PVI V4.7
Hierarchia objektov PVI
...
| Názov | Popis | Jednotka | Náhradná hodnota |
|---|
| --- PVI Parameters --- |
| Parameter pre funkciu PviXInitialize (inicializácia PVI rozhrania). Časový limit komunikácie pre komunikáciu klient/server (aplikácia / PVI Manager) v sekundách. Hodnota zadaná v tomto parametre slúži ako predvolené nastavenie inicializačného parametra COMT. Ak nie je požadované žiadne prednastavenie, mala by sa zadať predvolená hodnota 0. | sec | 0 |
| Parameter pre funkciu PviXInitialize (inicializácia PVI rozhrania). Čas opakovania pre užívateľské správy PVICOM v sekundách. Hodnota zadaná v tomto argumente funkcie slúži ako predvolené nastavenie inicializačného parametra RETR. Ak nie je požadované žiadne prednastavenie, mala by sa zadať predvolená hodnota 0. | sec | 0 |
Initialization parameter string | Parameter pre funkciu PviXInitialize (inicializácia PVI rozhrania). Reťazec s inicializačnými parametrami. Podľa dokumentácie PVI sú podporené tieto parametre: | Parameter | Description |
|---|
| COMT | Communication timeout for the client/server (application/PVI Manager) communication in seconds The timeout also defines the time for the life sign monitor. An additional period is needed to detect a disruption in the client/server connection. To determine the total time where a communication disruption would be detected (at the latest), the timeout value specified here has to be doubled. If the timeout is 5, then an interruption in the connection can be detected as early as 5 seconds and as late as 10 seconds. Connection interrupts are not recognized as such by the PVICOM interface if they occur within the timeout period. Data transfer simply continues once the connection is reestablished. Often used values are 3 - 10 seconds for local communication and 5 - 30 seconds for remote communication. Value: 1 - 3600, = 0 ... Default value of 30 s used. The value specified in the function argument "Timeout" serves as a presetting for this parameter. | | RETR | Retry time for PVICOM user messages is seconds. The default setting ("RetryTime=0") should normally be used for this parameter. See the User Message Operations section for more information about this parameter. Value: 1 - 3600, <= 0 ... no repetition. The value specified in the function argument "RetryTime" serves as a presetting for this parameter. | | LM | Limit on user messages. Default: "LM=1". PVICOM applications basically do not need to change the default setting of this parameter. However, if an application is able to respond quickly to PVICOM user messages, then a higher limit value ("LM=100", "LM=500") can speed up user message execution. See the User Message Operations section for more information about this parameter. Value: 1 - 65535, <= 0 -> No limiting. | | PT | Process timeout in seconds. Default: "PT=0". This timeout can be used to monitor the time between requests and responses. This parameter is only intended for PVICOM applications that carry out particular tasks. Standard applications do not need to be monitored and should use the default setting (no timeout monitoring). Value: 1 - 3600, <=0 -> No timeout monitoring | | IP | TCP/IP address or hostname. If the IP initialization parameter is specified, then the Remote communication type is used for PVICOM communication. Either the TCP/IP address (e.g. "IP=10.43.50.62") or the hostname ("IP=SystemPC1") of the server (PVI Manager) is specified with this parameter. If the hostname is given, then the IP address assigned to the name is determined by the system | | PN | TCP/IP port number. Default: "PN=20000". This parameter is only required in conjunction with the IP parameter. The port number assigned to the PVI Manager needs to be specified here (PVI Manager Properties). Value: 1024 - 32767. | | AS | Auto-Start (only for the local communication type). 1 ... PVI Manager is started (default). 0 ... PVI Manager is not started automatically and must be started already when the function is called. More information about the startup procedure can be found in the PVI Manager section. |
| - | - |
| Parameter ObjectDescriptor pre funkciu PviXCreate pri vytváraní objektu Line. Parameter udáva popis linky. Prednastavená hodnota CD=LnIna2 vytvorí linku INA2000, ktorá sa používa na komunikáciu s riadiacimi jednotkami B&R SG3, SGC a SG4 prostredníctvom protokolu INA2000 (Industrial Network Architecture). | - | CD=LnIna2 |
| Parameter ObjectDescriptor pre funkciu PviXCreate pri vytváraní objektu Device. Parameter udáva popis zariadenia. Prednastavená hodnota CD="/IF=tcpip /SA=1" vytvorí spojenie s použitím TCP/IP (UDP), zdrojová adresa (adresa D2000 KOM-u) bude 1. Dokumentácia PVI popisuje parametre pre jednotlivé typy zaríadení (Serial, Ethernet UDP, Modem, CAN device, Profibus FDL device). | sec | 30 |
| --- Other Parameters --- |
| Parameter ovplyvňuje rozsah browsovania využívaného pri konfigurácii meraných bodov. Ak je parameter nastavený na hodnotu YES, tak pri browsovaní meraných bodov budú prehľadávané globálne premenné, všetky objekty typu Task definované v rámci CPU, ako aj všetky lokálne premenné definované vo všetkých taskoch. Ak je parameter nastavený na hodnotu NO, sú prehľadávané globálne premenné a lokálne premenné tasku definovaného parametrom protokolu Task object definition. Poznámka: táto funkcionalita je vypnutá z dvoch dôvodov. Po prvé, pre zatiaľ nezistené dôvody spôsobí použitie tejto funkcionality pád D2000 KOM procesu po niekoľkonásobnom opakovaní browsovania (refresh). Po druhé, , pretože na stanici má zmysel nakonfigurovať iba globálne premenné a lokálne premenné tasku definovaného parametrom protokolu Task object definition. Lokálne premenné iných taskov nebudú funkčné. | YES/NO | NOdefinovaného parametrom protokolu Task object definition. Lokálne premenné iných taskov nebudú funkčné. | YES/NO | NO |
| Ak je hodnota parametra nenulová, tak v rámci periodického čítania hodnôt v rámci stanice sa kontroluje, či za posledných "Inactivity timeout" sekúnd bola prijatá nejaká hodnota ľubovolnou stanicu na linke. Ak nie, bude spojenie s PVI Managerom rozpojené a znovu nadviazané. Pozn: parameter sa dá použiť na zrýchlenie detekcie komunikačných problémov. Pokiaľ chodia hodnoty meraných bodov zriedkavo, odporúčame vytvoriť výstupný meraný bod, do ktorého bude každých niekoľko sekúnd zapisovaná hodnota. | sec | 0 |
| Parameter umožňuje spustenie dávkového súboru pri (re)štarte komunikácie. Tento dávkový súbor môže napr. reštartovať proces PVI Manager (PviMan.exe) - napr. pomocou utility pskill.exe alebo pomocou Windows utility "sc", ak je PVI Manager spustený ako servis. Reštartovanie pomáha, ak sa napríklad PVI Manager dostane do stavu "Locked". V názve dávkového súboru môže byť použitá symbolická konštanta #APPDIR#, ktorá udáva aplikačný adresár, napr. #APPDIR#cleanup.bat | - | - |
| Čas v sekundách, do ktorého musí dávkový súbor zadaný parametrom Cleanup command skončiť. Po uplynutí tohto timeoutu bude dávkový súbor ukončený. | sec | 10 |
| Oneskorenie po vytvorení každého objektu. Tento parameter slúži na spomalenie nábehu komunikácie kvôli ladeniu a diagnostike. | sec | 0,0 |
Asynchronous write/create | Parameter určuje spôsob komunikácie s PVI Managerom pri vytváraní objektov a pri zápise hodnôt. Odporučaný je asynchrónny spôsob, synchrónny je implementovaný iba kvôli ladeniu a diagnostike. Synchrónny spôsob práce je navyše nepodporený PVI Managerom z viacerých threadov, preto ho je možné použiť iba pri jedinej linke B&R. | YES/NO | YES |
| Zapnutie výpisu čítaných a zapisovaných hodnôt a názvov meraných bodov. | YES/NO | NO |
| Výpis dodatočných ladiacich informácií o komunikácii na linke. | YES/NO | NO |
...
| Parameter | Popis | Jednotka | Náhradná hodnota |
|---|
Station object definition | Definícia objektu typu Station. Pre linku typu INA2000 nie je nutné konfigurovať (parameter má využitie na linkách typu NET2000, DCAN, MODBUS a SNMP). | - | - |
| Definícia objektu typu CPU. Prednastavená hodnota CD="/DAIP=127.0.0.1 /REPO=11160 /RT=1000" vytvára spojenie na lokálne bežiace (/DAIP=127.0.0.1) virtuálne PLC na porte 11160 (/REPO=11160), s timeoutom na odpoveď 1000 ms (/RT=1000). Podľa dokumentácie PVI existujú tieto použiteľné parametre pre UDP komunikáciu: | Parameter | Values | Setting | Description |
|---|
| /DA | 1-255 | 7 | Station number of the target station. Automatic identification of the target station from the station number. The station number must be unique within the INA2000 network. The highest station number is 99 for SG3 and SGC with AR Version < 2.00, or 255 for SG4 and SGC with AR Version >= 2.00. Example: "/DA=56". | | /DAIP | IP address, Host name | None | The IP address of the target station. Manual identification of the target station from the IP address or identification from the hostname (DNS, only possible for SG4). Examples: "/DAIP=68.10.10.27" ... IP address, "/DAIP=CP340su" ... Hostname.Specifying the parameter /DA depends on whether the parameter /DAIP is specified: If the parameter /DAIP is not specified, then the parameter /DA must always be specified. If the parameter /DAIP is specified as an IP address, the parameter /DA is optional. If /DA is specified, however, the defined station number must be correct. If the /DAIP parameter is specified as a hostname, the /DA parameter is ignored. | | /RT | 0 - 65535 | 275 | Response timeout in ms. If a response to a sent frame is not received | with within this time, then the frame is transferred again. After the third retry, the connection is deemed canceled. The time in which an interrupted connection is detected is a result of ResponseTimeout * 4. Setting /RT=0 uses the INA2000 default value (275 ms). Example: "/RT=400".
Recommended values: | 20 - 250 | ... | For simple point-point connections, or connections via a local network with pure variable communication on SG4 controllers with sufficient idle time, with AR 3.00 and higher. | | 250 - 500 | ... | For connections via a local network with pure variable communication to any target systems / AR versions. | | 500 - 750 | ... | For connections via a local network with PLC services running (e.g. Automation Studio project transfer). | | 750 - 1500 | ... | For connections via an in-house network. | | 1500 - 5000 | ... | For connections via Intranet/Internet. |
| | /REPO | 1025 - 32767 | 11159 | IP port number of the target station. If the value is specified in Hexadecimal, then "0x" must be used to introduce the value (e.g. "/LOPO=0x2b97"). The port number must match the setting on the target station (PLC). Example: "/REPO=11159". | | /CKDA | 0 / 1 | 1 | Enables or disables the check to see if the target station number (parameter /DA) is unique. The parameter /CKDA is irrelevant if used together with the parameter /DAIP (check is always disabled). Example: "/CKDA=0" ... Checking is disabled. | | /ANSL | 0 / 1 | *) | Turn on/off fast TCP download/upload via ANSL. Example: "/ANSL=0" ... Download/upload via ANSL is turned off. | | /APN | 1025 - 32767 | 11169 | ANSL IP port number of the target station (peer station) for fast TCP download/upload. Example: "/APN=11169". |
| - | CD="/DAIP=127.0.0.1 /REPO=11160 /RT=1000" |
| Definícia objektu typu Module. Parameter umožňuje vytvorenie spojenia na modul v rámci PLC. Syntax parametra CD: /RO=[<Name of application module>::]<Module name> alebo [<Name of application module>::]<Module name> Príklady: - CD="/RO=Module1"
- CD="/RO=Generator::Module1"
- CD=Module2
- CD=Generator::Module2
| - | - |
| Definícia objektu typu Task. Parameter umožňuje vytvorenie spojenia na task (program) v rámci PLC. Merané body, ktoré sú potomkami stanice, reprezentujú globálne premenné PLC a lokálne premenné tasku, ktorý je zadaný týmto parametrom. Pre každý task v rámci PLC je teda nutné konfigurovať samostatnú stanicu. Ak parameter nie je zadaný, sú dostupné iba globálne premenné PLC. | - | - |
...
PVI Base system - B&R documentation
| Info |
|---|
|
O protokole B&R PVI protocol si môžete prečítať aj blog: |
Zmeny a úpravy
...