Our project has CX2020 with Control Plus V1 and later we bought mPad as a primary display. Now we have some issues related to Data Set Manager. HMI from mPad was not able to get type data files. After few hours I figured out the reason for that is on CX2020 is current user OpconUser but on the mPad we have NexeedUser. Bacause of this system is not able to acces \\PlcTarget\DataSetmanager share. After we tried to map share manually using OpconUser credentials it started to work and it works also after PLC restart. My question is how to corrently handle this situation. Install older version of image to the mPad? Create OpconUser on the mPad? Anything else?
... View more
Hello @nexidator voice of people 😀 says we need: LEFT, RIGHT, MID, REPLACE and maybe some methods know from higher languages like Split, SwapCase, IsDecimal, IsNumeric, IsAscii, Count....
... View more
LEFT, RIGHT string can be substituted by use of OpconStrDelete. You can delete all characters from specified character to right and then content on the left remains and vice versa. But it is not much comfortable. 😡
... View more
In the meantime I found biggest disadvantage of option 2, which is you are not able to use it until you pack it in to the library and add it to references. This is not much comfortable during the development, because I need to continuously work with source code of object, base and peripheral in my project. I do not want to create library everytime I change something.
... View more
I am developing an object containing Object, Base and Peripheral as usual. In my Base there are some constants defined for usage in Object and also in Peripheral e.g.: MyBaseConstants {attribute 'qualified_only'}
VAR_GLOBAL CONSTANT
MY_DEVICE_PAR_COUNT : DINT := 5;
END_VAR In some examples I found different approaches how to access this constant from object or peripheral: Use directly MyBaseConstants.MY_DEVICE_PAR_COUNT. Use namesapace OC_MyBase.MY_DEVICE_PAR_COUNT. Probably without attribute 'qualified only'. Use namesapace + global variable list OC_MyBase.MyBaseConstants.MY_DEVICE_PAR_COUNT. Too long for coding. What is the right way how to handle it?
... View more