Activity for audi0615

  • audi0615 audi0615 posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    Thanks for your reply. I have Raspi 3b and 4. if the bluetooth is UART0(ttyAMA0), could it be used as a serial com port? i've read a post regarding "cmpCharDevice" library. do i have to use the library for the bluetooth or just Syscom library is enough?

  • audi0615 audi0615 posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    Hi. I'd like to use Raspberry pi onboard bluetooth as a serial port. My understanding is UART0(ttyAMA0) is allocated to the bluetooth in Rasp 3 or 4. So, does this mean i can use the bluetooth as any other serial devices for serial communication? I edited "/etc/CODESYSControl_User.cfg" as below and I would use SysCom library for serial communication. [SysCom] Linux.Devicefile.1=/dev/ttyAMA0

  • audi0615 audi0615 posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    Hi. I'd like to encrypt my boot application with a certificate to prevent it from disassembled or decompiled. I referred to "Encrypting with certificates" in CODESYS help. Creating a new certificate and encrypting the application seems OK. but i got an error "there is no matching certificate on the device to decrypt the data" when i tried to download the application to my controller. Please refer to attached snapshots and any help would be appreciated.

  • audi0615 audi0615 posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    thanks you so much. i appreciate your help.

  • audi0615 audi0615 posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    Hi. I'd like to install the CODESYS raspi runtime by installing .deb file (without using "Update RaspberryPi" in CODESYS IDE) After installation, what is the default setting of single/multicore selection? single core? and where could i change the setting? (CODESYSConfig.cfg?)

  • audi0615 audi0615 posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    Hi. I'm trying to implement Asymmetric Encryption / Decryption with Codesys libraries. According to the product datasheet of Cypto Example, I need to create a pseudo component to create self-signed certificate and get a key pair. However the crypto example project does not create the component and "udiComponentId" keeps increasing. How can i create the component to open a certificate and get a key pair?

  • audi0615 audi0615 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Thank for your reply. Actually the stMain has many big sized stSub members (stSub1~stSub1024) and in most cases only 1~2 of them are used depending on user configuration. static declaration of sub structs results in more than 500mb memory allocation for them. so this is only for reducing memory usage.

  • audi0615 audi0615 modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    Hi. I have two sturcts, stMain and stSub. stSub is contained in stMain and both structs are dynamically created using __NEW. if I delete stMain, is stSub automatically deleted? or Should i delete stSub first and then delete stMain? TYPE stMain : STRUCT pstSub: POINTER TO stSub; END_STRUCT END_TYPE TYPE stSub : STRUCT xTest: BOOL; END_STRUCT END_TYPE PROGRAM PLC_PRG VAR pstMain: POINTER TO stMain; END_VAR IF pstMain = 0 THEN pstMain:=__NEW(stMain); IF pstMain.pstSub = 0 THEN pstMain.pstSub=__NEW(stSub);...

  • audi0615 audi0615 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Hi. I have two sturcts, stMain and stSub. stSub is contained in stMain and both structs are dynamically created using __NEW. if I delete stMain, is stSub automatically deleted? or Should i delete stSub first and then delete stMain? TYPE stMain : STRUCT pstSub: POINTER TO stSub; END_STRUCT END_TYPE TYPE stSub : STRUCT xTest: BOOL; END_STRUCT END_TYPE PROGRAM PLC_PRG VAR pstMain: POINTER TO stMain; END_VAR IF pstMain = 0 THEN pstMain:=__NEW(stMain); IF pstMain.pstSub = 0 THEN pstMain.pstSub=__NEW(stSub);...

  • audi0615 audi0615 posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    Hi. Is it possible to connect a softmotion axis to a servo drive on runtime (with IEC code)? for example, 1) fbAxis is an instance of AXIS_REF_ETC_Panasonic_MINAS.. 2) Ethercat type Panasonic MINAS servo is added to Ethercat Master with Ethercat stack library (dynamic configuration ,not in the device tree) I'd like to connect this fbAxis to the Panasonic servo. Your help would be appreciated.

  • audi0615 audi0615 posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    Thanks for your reply LSM303 accelerometer and magnetometer. I have decided to use library + xml file.

  • audi0615 audi0615 posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    Hi. I'd like to access GPIO Input/Output in IEC code. Following occurs error "_GPIO is no input of 'IoDrvGPIO". GPIOs_Instance._GPIO.axOutput[22]:=True; Could anyone advise how to access GPIO outputs and write values?

  • audi0615 audi0615 posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    Hi Have you made it working? I am also looking for how to write a value to a register with I2C Master write method. I would appreciate if you can share your code.

  • audi0615 audi0615 modified a comment on discussion Runtime πŸ‡¬πŸ‡§

    Hello. Is it possible to read or write to a specific register with I2C_Master read, write method? i found following topics but still don't understand how to use. https://forge.codesys.com/forge/talk/Runtime/thread/d34960a109/ https://forge.codesys.com/forge/talk/Runtime/thread/010acaa90c/ for example, Is it correct do as below to write byValue to byRegister? usiAddress:=16#20 byRegister:=16#19 byValue:=16#3C I2C_Master.write(usiAddress, ADR(byRegister),1); I2C_Master.write(usiAddress, ADR(byValu...

  • audi0615 audi0615 posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    Hello. Is it possible to read or write to a specific register with I2C_Master read, write method? i found following topic but still don't understand how to use. https://forge.codesys.com/forge/talk/Runtime/thread/d34960a109/ for example, Is it correct do as below to write byValue to byRegister? usiAddress:=16#20 byRegister:=16#19 byValue:=16#3C I2C_Master.write(usiAddress, ADR(byRegister),1); I2C_Master.write(usiAddress, ADR(byValue),1);

  • audi0615 audi0615 posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    Thanks Mr. Edwin. It seems the example project direct access to I2C_Master address without using I2C library FB. What if i add I2C_Master and instantiate I2C library FB and use it? (no connection between I2C_Master and I2C device library FB) Nothing happen?

  • audi0615 audi0615 posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    Hello. I would like to create my own I2C libraries with help of https://forge.codesys.com/drv/io-drivers/doc/I2C/?version=1 However, I need to use it in Runtime without adding devices into a device tree in Codesys Development System which means i need to dynamically add I2C devices with IEC code. Is it possible to just instantiate the library FBs and use it in Runtime?

  • audi0615 audi0615 modified a comment on discussion Runtime πŸ‡¬πŸ‡§

    Hello. I'm trying to implement Modbus RTU Master(Client) using IoDrvModbus Library (without GUI Interface) Everything works fine except when the Master receive ErrorCode 5 : Acknowledge (Notification of a Slave that a lengthy operation being started). My questions are as follow. 1) When the master receives "Acknowledge" from the slave, which output from FB ModbusRequest2 is TRUE? (xDone or xBusy or xError) 2) While the lengthy operation is being done from the server, what the master should do? just...

  • audi0615 audi0615 modified a comment on discussion Runtime πŸ‡¬πŸ‡§

    Hello. I'm trying to implement Modbus RTU Master(Client) using IoDrvModbus Library (without GUI Interface) Everything works fine except when the Master receive ErrorCode 5 : Acknowledge (Notification of a Slave that a lengthy operation being started). My questions are as follow. 1) When the master receives "Acknowledge" from the slave, which output from FB ModbusRequest2 is TRUE? (xDone or xBusy or xError) 2) While the lengthy operation is being done from the server, what the master should do? just...

  • audi0615 audi0615 posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    Hello. I'm trying to implement Modbus RTU Master(Client) using IoDrvModbus Library (without GUI Interface) Everything works fine except when the Master receive ErrorCode 5 : Acknowledge (Notification of a Slave that a lengthy operation being started). My questions are as follow. 1) When the master receives "Acknowledge" from the slave, which output from FB ModbusRequest2 is TRUE? (xDone or xBusy or xError) 2) While the lengthy operation is being processed from the server, what the master should do?...

  • audi0615 audi0615 posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    Hello. In Codesys 3.5.16, it is possible to add ethercat slave dynamically using "EthercatStack" library. I would like to dynamically add ethercat type servo drive which support ds402 protocol (Panasonic A6) and create axis for using motion function blocks such as MC_POWER. Is it possible to create servo axis on runtime? how do i use dynamically added ethercat type servo?

  • audi0615 audi0615 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Thank you so much for your reply. I need to use a hash table in my project, so i would make the hashcode unique. Thanks for the new example site, very convenient.

  • audi0615 audi0615 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I was able to build a libary for Lreal type except "hashcode". According to comments in the element example, "hashcode" is used in a hash table. Is it correct to just use LrealValue as the hashcode? ElementHashCode := LREAL_TO_LINT(LrealValue);

  • audi0615 audi0615 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Thanks for your kind reply. I would try it.

  • audi0615 audi0615 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Thank you for your reply. but still i don't understand how to implement real type collection. the library provides bool,int, dint, udint, lint, string, wstring type collection. only real type is missing.

  • audi0615 audi0615 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Hi. With regard to "Collection example" in the store, I'd like to know why there are no collections for real type variable.(RealList, RealQueue, RealStack) if i want to add real type variables into a collection, do i have to convert them to int type variables?? Another question is, what is a limitation of size of dynamic collection. no limit?

  • audi0615 audi0615 posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    Hi. Is it possible to get a license key number on runtime? i've checked following thread but it seems the Codemeter library does not provide such a detailed information. Any help would be appreciated. https://forge.codesys.com/forge/talk/Engineering/thread/66b0c1d496/?limit=25#0fc0

  • audi0615 audi0615 posted a comment on discussion Engineering

    OK. Thanks for your confirmation.

  • audi0615 audi0615 modified a comment on discussion Engineering

    Hi. Below is from Codesys Online Help, does it work for a RasberryPi as well? *Offline activation If your workstation computer does not have Internet access, then you can activate products using a license activation file. You get the file from the CODESYS license server. To do this, connect to the server from any computer with Internet access and request the file. Then you transfer the file on any storage medium to your working computer. The product is activated there as usual in CODESYS Development...

  • audi0615 audi0615 modified a comment on discussion Engineering

    Hi. Below is from Codesys Online Help, does it work for a RasberryPi as well? *Offline activation If your workstation computer does not have Internet access, then you can activate products using a license activation file. You get the file from the CODESYS license server. To do this, connect to the server from any computer with Internet access and request the file. Then you transfer the file on any storage medium to your working computer. The product is activated there as usual in CODESYS Development...

  • audi0615 audi0615 modified a comment on discussion Engineering

    Hi. Below is from Codesys Online Help, does it work for a RasberryPi as well? *Offline activation If your workstation computer does not have Internet access, then you can activate products using a license activation file. You get the file from the CODESYS license server. To do this, connect to the server from any computer with Internet access and request the file. Then you transfer the file on any storage medium to your working computer. The product is activated there as usual in CODESYS Development...

  • audi0615 audi0615 modified a comment on discussion Engineering

    Hi. Below is from Codesys Online Help, does it work for a RasberryPi as well? *Offline activation If your workstation computer does not have Internet access, then you can activate products using a license activation file. You get the file from the CODESYS license server. To do this, connect to the server from any computer with Internet access and request the file. Then you transfer the file on any storage medium to your working computer. The product is activated there as usual in CODESYS Development...

  • audi0615 audi0615 posted a comment on discussion Engineering

    Hi. Below is from Codesys Online Help, does it work for a RasberryPi as well? Offline activationΒΆ* If your workstation computer does not have Internet access, then you can activate products using a license activation file. You get the file from the CODESYS license server. To do this, connect to the server from any computer with Internet access and request the file.** Then you transfer the file on any storage medium to your working computer. The product is activated there as usual in CODESYS Development...

  • audi0615 audi0615 modified a comment on discussion Runtime

    Hi. My customer has reported that all their 5 controllers suddenly do not start when PC boot up. I've found when RTE Runtime starts, it deletes the boot application folder (ProgramData\PlcLogic\Application). I could identify folder deletion by CodesysControlRTEService.exe using Microsoft ProcMon tool. Please find attached screenshot, PlcLog, Config files. I would appreciate any help.

  • audi0615 audi0615 posted a comment on discussion Runtime

    Hi. My customer has reported that all their 5 controllers suddenly do not start when PC boot up. I've found when RTE Runtime starts, it deletes the boot application folder (ProgramData\PlcLogic\Application). I could identify folder deletion by CodesysControlRTEService.exe using Microsoft ProcMon tool. Please find attached screenshot, PlcLog, Config files.

  • audi0615 audi0615 posted a comment on discussion Runtime

    I have found the solution. when i change the name of i2c device, when refactoring dialog shows up, i should press No.

  • audi0615 audi0615 posted a comment on discussion Runtime

    Dear Mr. Eschwellinger. Thank you for your response. Please refer to attachment.

  • audi0615 audi0615 modified a comment on discussion Runtime

    Hello. I've got error when renaming user-created I2C devices for using multiple same devices. I don't have any problems with I2C devices included in Codesys (i.e.MPU 6050_0, MPU 6050_1 is OK) I've compared user-created I2C device xml and Codesys I2C device xml and found nothing special. Could you please advise?

  • audi0615 audi0615 modified a comment on discussion Runtime

    Hello. I've got error when renaming user-created multiple I2C devices for using multiple same devices. I don't have any problems with I2C devices included in Codesys (i.e.MPU 6050_0, MPU 6050_1 is OK) I've compared user-created I2C device xml and Codesys I2C device xml and found nothing special. Could you please advise?

  • audi0615 audi0615 modified a comment on discussion Runtime

    Hello. I've got error when renaming user-created multiple I2C devices for using multiple same devices. I don't have any problems with Codesys legacy RPI devices (i.e.Gyro MPU 6050) I've compared user created xml and Codesys legacy xml and found nothing special. Could you please advise?

  • audi0615 audi0615 modified a comment on discussion Runtime

    Hello. I've got error when renaming user-created multiple I2C devices for using multiple same devices. I don't have any problems with Codesys legacy RPI devices (i.e.Gyro MPU 6050) I've compared user created device xml and Codesys devcie xml and found no difference. Could you please advise?

  • audi0615 audi0615 modified a comment on discussion Runtime

    Hello. I've got error when renaming user-created multiple I2C devices for using multiple same devices. [img src=attachment.png width=50%] I don't have any problems with Codesys legacy RPI devices (i.e.Gyro MPU 6050) I've compared user created device xml and Codesys devcie xml and found no difference. Could you please advise?

  • audi0615 audi0615 modified a comment on discussion Runtime

    Hello. I've got error when renaming user-created multiple I2C devices I don't have any problems with Codesys legacy RPI devices (i.e.Gyro MPU 6050) I've compared user created device xml and Codesys devcie xml and found no difference. Could you please advise?

  • audi0615 audi0615 modified a comment on discussion Runtime

    Hello. I've got error when creating multiple I2C devices which are provided by users. I don't have any problems with Codesys legacy RPI devices (i.e.Gyro MPU 6050) I've compared user created device xml and Codesys devcie xml and found no difference. Could you please advise?

  • audi0615 audi0615 posted a comment on discussion Runtime

    Hello. I've got error when creating multiple I2C devices which are provided by users. I don't have any problems with Codesys legacy RPI devices (i.e.Gyro MPU 6050) I've compared user created device xml and Codesys devcie xml and found no difference. Could you please advise?

  • audi0615 audi0615 posted a comment on discussion Runtime

    Ok. Thanks a lot.

  • audi0615 audi0615 posted a comment on discussion Runtime

    Thank you for your prompt response. I would try the debian package. I would like to distribute my boot project file by letting them to download it. For the license issue, Do you mean we have to purchase all RPIs and distribute them with preinstalled license? We also consider to purchase the runtime toolkit. Does it provide such a functionality?

  • audi0615 audi0615 modified a comment on discussion Runtime

    Hi Is it possible to install RPI runtime and license without Codesys development system? I have a situation that my customers would purchase their own RPIs and Codesys licenses and I have to deploy a same project to them. (Expected qty is more than 100) In this case no programming is required for them however they have to sign up Codesys store and download the development system file and install it only for installing runtime and license. Are there any standalone tools to install RPI runtime and...

  • audi0615 audi0615 posted a comment on discussion Runtime

    Hi Is it possible to install RPI runtime and license without Codesys development system? I have a situation that my customers would purchase their own RPIs and Codesys licenses and I have to deploy a same project to them. (Expected qty is more than 100) In this case no programming is required for them and the Codesys development system is too heavy weight and hard to use only for installing runtime and license. Are there any standalone tools to install RPI runtime and license?

  • audi0615 audi0615 modified a comment on discussion Engineering

    Hi. I'm looking for Codesys V3.5 library for access to SqlLite DB file. this is not for accessing codesys trend or alarm DB file. I would like to store some kind of information to local, lightweight db file. With MySQL or MariaDB, i can use MySQL library in Codesys Store, but my device is raspberry pi 3 which is not powerful enough to run DB server. (increase of cpu or memory usage might cause cpu overload or memory shortage) Can i use Sql4Codesys library to access to SqlLite DB file?? In addtion,...

  • audi0615 audi0615 posted a comment on discussion Engineering

    Hi. I'm looking for Codesys V3.5 library for access to SqlLite DB file. this is not for accessing codesys trend or alarm DB file. I would like to store some kind of information to local, lightweight db file. With MySQL or MariaDB, i can use MySQL library in Codesys Store, but my device is raspberry pi 3 which is not powerful enough to run DB server. (increase of cpu or memory usage might cause cpu overload or memory shortage) Can i use Sql4Codesys library to access to SqlLite DB file??

  • audi0615 audi0615 posted a comment on discussion Engineering

    Hi. With help of Codesys FAQ below, i was able to implement Modbus RTU feature dynamically with IEC Code. https://faq.codesys.com/display/CDSFAQ/Modbus+RTU%3A+Dynamic+Configuration 1) If i change the master transmission setting from RTU to ACSII, do I have to convert word arrays to char arrays manually as send buffers? Or Modbus Serial Master library automatically convert word buffers to chars buffers? 2) Does Codesys Modbus Serial Slave (Server) determine type of transmission automatically depending...

  • audi0615 audi0615 posted a comment on discussion Engineering

    Thank you so much I would check the options mentioned. Probably one of them could be the answer.

  • audi0615 audi0615 posted a comment on discussion Engineering

    Hi. Is there a way to know if device errors such as memory access violation occur in Runtime (without Codesys Development System)? It seems CmpLog library does not provide such a feature. I'd like to notify any critical errors to my user when runtime stops. Thanks.

  • audi0615 audi0615 posted a comment on discussion Engineering

    Hi. Codesys V3 SP16 now supports OPC-UA Client feature. I'm struggling to make a very simple client to read a single boolean value from a server without success. the library contains many callbacks and struct which makes me frustrated. (even string type variable is not just string, it is opcua_string) I am wondering when the example project would be available in Codesys Store.

  • audi0615 audi0615 posted a comment on discussion Engineering

    Hi. Suppose i have 5 same codesys devices. all devices have same applications, same variable delcaration... From device 1, i would like to access variables in device 3 with IEC code. Is there a simple way to access remote variables such as "device3.GVL.xTest"? Another problem is, there could be more than 5 devices, all of the remote device configurations are done by my customer who does not use Codesys Development System. for this reason, i need to configure remote connections dynamically with IEC...

  • audi0615 audi0615 posted a comment on discussion Engineering

    Thanks Gentlemen. I don't understand why loop is not required if memcpy is used. memcpy just copies one block of memory to another which can be used to copy a whole array to another one. however in my case, it has to map values of array components to another as below. array1[0]:=array2[50] array1[1]:=array2[90] array1[2]:=array2[100] .... Could you please show me an example of code using memcpy for data mapping?

  • audi0615 audi0615 posted a comment on discussion Engineering

    Hi. Suppose i have 2 arrays, array1 : array [0..999] of real; array2 : array [0..999] of real; Components of array2 need to be mapped into array1. For this, in text file i have made mapping data as below. 0=50 (means array1[0]:=array2[50]) 1=90 2=100 ... by reading the text file, i have stored index numbers of array2 to another array. arIndex[0]:=50; arIndex[1]:=900; arIndex[2]:=100; ...... FOR i:=0 to 999 DO indexnum:=arIndex[i]; array1[i]:=array2[indexnum]; //mapping END_FOR My question is, is...

  • audi0615 audi0615 modified a comment on discussion Engineering

    Hi. This is with reference to the ethercat dynamic configuration. I have managed to configure ethercat slaves dynamically with Ethercat stack library. Thanks! Now, I need to implement "hot (warm? live?) IO configuration" feature which enables a change of IO configuration while the runtime is running. For this, I have to clear all slaves which were previously configured and added to the master but it seems there are no methods such as "Ethercat_master.Master^.ClearSlaves". Could you please advise...

  • audi0615 audi0615 posted a comment on discussion Engineering

    Hi. This is with reference to the ethercat dynamic configuration. I have managed to configure ethercat slaves dynamically with Ethercat stack library. Thanks! Now, I need to implement "hot (warm? live?) IO configuration" feature which enables a change of IO configuration. For this, I have to clear all slaves which are previously configured and added to the master but it seems there are no methods such as "Ethercat_master.Master^.ClearSlaves". Could you please advise how to clear all dynamically configured...

  • audi0615 audi0615 posted a comment on discussion Engineering

    Thank you for your reply Mr. Edwin I have requested the relevant information to Beckhoff and Crevis. Thanks again.

  • audi0615 audi0615 posted a comment on discussion Engineering

    Thank you very much for your help Mr. Edwin I would try Automation Server.

  • audi0615 audi0615 posted a comment on discussion Motion

    Hi. Suppose I have 100 PLCs which have same hardware (i.e. raspberry PI) and the PLC use EtherCAT as a fieldbus. 1) Is it possible to deploy a project by creating offline bootapp and copy it to 100 PLCs? 2) As every PLC has a unique MAC address of ethernet adapter, i need to modify the MAC address after the bootapp is coped to a new PLC, is this can be done by IEC Code or by modifying a configuration file?

  • audi0615 audi0615 modified a comment on discussion Engineering

    Hi. This is with reference to Dynamic Configuration of Ethercat slaves in SP16 (https://help.codesys.com/webapp/RMyqti2qMZZtTODOaHlN71rMvfI%2Ffld-DynamicConfig;product=EtherCATStack;version=3.5.16.0) I'm trying to understand the example but i have a several questions about it. Following code snippet is extracted from the example. CASE readeeprom.dwVendorID OF 2: // Beckhoff CASE readeeprom.dwProductID OF 72100946: // EK1100 -> nothing to add xKnown := TRUE; 131608658: // EL2008 pSlave^.AddSyncManager(16#0F00,...

  • audi0615 audi0615 modified a comment on discussion Engineering

    Hi. This is with reference to Dynamic Configuration of Ethercat slaves in SP16 (https://help.codesys.com/webapp/RMyqti2qMZZtTODOaHlN71rMvfI%2Ffld-DynamicConfig;product=EtherCATStack;version=3.5.16.0) I'm trying to understand the example but i have a several questions about it. Following code snippet is extracted from the example. CASE readeeprom.dwVendorID OF 2: // Beckhoff CASE readeeprom.dwProductID OF 72100946: // EK1100 -> nothing to add xKnown := TRUE; 131608658: // EL2008 pSlave^.AddSyncManager(16#0F00,...

  • audi0615 audi0615 modified a comment on discussion Engineering

    Hi. This is with reference to Dynamic Configuration of Ethercat slaves in SP16 (https://help.codesys.com/webapp/RMyqti2qMZZtTODOaHlN71rMvfI%2Ffld-DynamicConfig;product=EtherCATStack;version=3.5.16.0) I'm trying to understand the example but i have a several questions about it. Following code snippet is extracted from the example. CASE readeeprom.dwVendorID OF 2: // Beckhoff CASE readeeprom.dwProductID OF 72100946: // EK1100 -> nothing to add xKnown := TRUE; 131608658: // EL2008 pSlave^.AddSyncManager(16#0F00,...

  • audi0615 audi0615 modified a comment on discussion Engineering

    Hi. This is with reference to Dynamic Configuration of Ethercat slaves in SP16 (Example :https://help.codesys.com/webapp/RMyqti2qMZZtTODOaHlN71rMvfI%2Ffld-DynamicConfig;product=EtherCATStack;version=3.5.16.0) I'm trying to understand the example but i have a several questions about it. Following code snippet is extracted from the example. CASE readeeprom.dwVendorID OF 2: // Beckhoff CASE readeeprom.dwProductID OF 72100946: // EK1100 -> nothing to add xKnown := TRUE; 131608658: // EL2008 pSlave^.AddSyncManager(16#0F00,...

  • audi0615 audi0615 modified a comment on discussion Engineering

    Hi. This is with reference to Dynamic Configuration of Ethercat slaves in SP16 (Example :https://help.codesys.com/webapp/RMyqti2qMZZtTODOaHlN71rMvfI%2Ffld-DynamicConfig;product=EtherCATStack;version=3.5.16.0) I'm trying to understand the example but i have a several questions about it. Following code snippet is extracted from the example. CASE readeeprom.dwVendorID OF 2: // Beckhoff CASE readeeprom.dwProductID OF 72100946: // EK1100 -> nothing to add xKnown := TRUE; 131608658: // EL2008 pSlave^.AddSyncManager(16#0F00,...

  • audi0615 audi0615 posted a comment on discussion Engineering

    Hi. This is with reference to Dynamic Configuration of Ethercat slaves in SP16 (Example :https://help.codesys.com/webapp/RMyqti2qMZZtTODOaHlN71rMvfI%2Ffld-DynamicConfig;product=EtherCATStack;version=3.5.16.0) I'm trying to understand the example but i have a several questions about it. Following code snippet is extracted from the example. CASE readeeprom.dwVendorID OF 2: // Beckhoff CASE readeeprom.dwProductID OF 72100946: // EK1100 -> nothing to add xKnown := TRUE; 131608658: // EL2008 pSlave^.AddSyncManager(16#0F00,...

  • audi0615 audi0615 posted a comment on discussion Engineering

    Thanks Mr. Edwin

  • audi0615 audi0615 posted a comment on discussion Engineering

    Hi. I'm interested in the new feature (programmatic configuation of ethercat devices) in V3.5 SP16. https://www.codesys.com/fileadmin/data/Images/Download/features-and-improvements-V35SP16-en.pdf says "Examples Available" but I couln't find them anywhere. where can i find them???

  • audi0615 audi0615 posted a comment on discussion Engineering

    Hello! I am trying to implement Modbus TCP Master/Slave only with IEC Code with help of OSCAT MB_CLIENT, MB_SERVER function blocks. However, Unlike Codesys Modbus Configurator, OSCAT FB does not provide any interface to ethernet adapters. 1) Does this mean which adpater will be used would be determined by operating system? (by ip address in adapter setting) 2) Is it possible to make multiple Modbus TCP Slaves (Servers) on the same device with same ip address but with different port numbers? Your...

  • audi0615 audi0615 posted a comment on discussion Visualization

    Dear Marcel Thank you soooooo much!!!! Finally I got the solution

  • audi0615 audi0615 posted a comment on discussion Engineering

    Hi. I'm trying to implement Modbus RTU Slave Device (PLC as Slave) only with libraries (no modbus devices added in my device tree) It seems i could use "Modbus Server" FB in IoDrvModbusSerialSlave Library. However, there are no variables for setting "start addresses of coils, discrete inputs, holding registers and Input Registers". 1) is it correct to use Modbus Server FB to implement Modbus RTU Slave? 2) where do i set "start addresses of coils, discrete inputs, holding registers and Input Regi...

  • audi0615 audi0615 posted a comment on discussion Visualization

    Hi. Is it possible to set from/to timestamp by user in Trend? for instance, i need to show trend data only from 2020-03-20 01:15:20 to 2020-03-21 13:23:56 and from/to timestamp should be configurable by variable in code. I've already checked the Trend API, however this API does not provide such function.

  • audi0615 audi0615 posted a comment on discussion Engineering

    Thank you for your reply. the shared memory solution would be possible.

  • audi0615 audi0615 posted a comment on discussion Engineering

    Thanks for the reply. My hardware is just a general industrial type PC, not from any PLC vendor. One of the use cases would be evaluating user input string math expression. (i.e. 3+(SIN(2+3)+5)) It is very complicate to parse and evaluate this kind of string only with codesys. there are many C source codes can be used for this purpose. How can i purchase the runtime toolkit?

  • audi0615 audi0615 posted a comment on discussion Engineering

    Hi. I'm trying to make an external library using my own c code. i've found some documents about this. https://forge.codesys.com/forum/en/448/genmed-Creating%20own%20Runtime%20System%20Components%20and%20IO%20Drivers%20(v2.0).pdf https://support.crosscontrol.com/sites/default/files/documentation/Discontinued%20Products/Computers/CCpilot%20XS%2012/Documents/Creating%20and%20linking%20C%20library%20functions_IN_32Bit_E.pdf it seems that the external .c file is not included in codesys code but executed...

  • audi0615 audi0615 posted a comment on discussion Engineering

    Thank you for your reply. I would check it.

  • audi0615 audi0615 posted a comment on discussion Engineering

    Hi. I need to configure, read/write Modbus TCP dynamically by ST Code. I could find an example for Modbus RTU on Codesys FAQ (https://faq.codesys.com/display/CDSFAQ/Modbus+RTU%3A+Dynamic+Configuration) Could you please provide an example for Modbus TCP??

1