I want to read an Smartmeter cable. Its USB on a Linux device. With cu -l /dev/ttyUSB0 -s 115200 --parity=none -E q i could read. But the Codesys command " SysProcessExecuteCommand2 " its output is a string. But the data is 1024 bytes. So to long for a String. Is there a command to read it in a Array ?
Getto Showed that de virtual is working. But thats a macgiver solotion. I tried a version 17. But then it has a problem with the current visualization version. Codesys changes to mutch so newer version always add new problems. the newest is version 18. Still no working version.
Hi, I bought it at a dealer. They have same problem. Yes version 3.5.14.40. I have several versions of codeys. Problem with version 18 is that most dont support, if de software is newer then the there version. My Dealer made the effor to find out that the virtual geast is working. The problem is to get them fix the problem. Set back means that is set the output to TRUE. Then the controller sets it back to FALSE. Ive you use a new programm and install the exor. It has the same problem. Whats a : read...
I bought 2 Exor EX710 with a PLIO6 IO board. But from the 7 output i can only set the last 2 Output. The other are set back. Exor blaims Codesys. The solution seems te be a virtual windows 10 with a codesys version 14.40 . But thats no solution. Any one how knows more ?
Ive got a linux device. Wenn i try to copy Controlconfig.cfg to my computer then i get file not valid .. Why ? To add an USB - P1 smart meter cable i need to change that file
I try to read a smart meter with a Windows CE controller. Bought a USB cable. Copy the drivers to the ordner Windows. But after power off the drivers are gone. Knows anyone how to do that? I want the usb as a vurtial com port
Hallo Bruno, Ich meinte wie ich hier den EDS datei einfuge. In Codesys kenn ich. Irgentetwas ist falch in de eds. Wenn ich den Datentype Γ€ndere vonn usint nach bsp uint dan sehe ich im. Aber ich sehe kein unterschied mit einem andere wo ich 6060 sehen kan als Usint. Auch ist 1600 und 1A00 gleich. Also was beschrenkt codesys. EDS ist orginal Parker. Aber Support is schlecht. Habe mal eine Drive erneuet . Dar war die firmware nicht gleich. Also fehler parker. Kunde soll trotsdem zahlen.
Wie kan man ein EDS datei zufugen ?
Ich habe ein eds datei mit 6060 6061 Mit PDOmapping=1 aber ich sehe die nicht in codesys. Auch is 1400 gleich an eine eds datei wo ich den 6060 sehen kan. Wo reagiert codesys auf?
Yesterday change program but no vision. open this morgen and i get a lot of vision problems. Why ? I saw it ones before. version 15.2
Ive got 3 devices with Linux. Both the same software. But one has trouble reading data. I made a FB to read the settings. I read 4 settings. Read/write is ok. But after power on one is empty. Why . Cyclic task. RW_Para : RemVar_FileRW:= (bExecute:=TRUE, bRead:=TRUE, sFileName:='../Settings/PAR_Pumps.Par', pRemBuffer:=adrPara, szRemBufSize:=udiSize_Para ); // Read parameters at power up cWrite: IF NOT bInit THEN udi_handle:=SysFileOpen(sFileName, sysfile.AM_WRITE_PLUS, ADR(udi_ErrorCode)); binit :=...
Hi, Anyone knows how to read a Smartmeter. I connected to my RS232 port but don't recieve any data. So maybe i have to use USB. When i look here i have to change Codesyscontrol.cfg. I tried to copy it back to my pc. But then is get File is not valid. But i see it in codesys
I see a compleet different version . Why ?
automation server installed. But no extra menu
https://www.youtube.com/watch?v=iiPKyyO4M00 IS the gateway for linux (PLC) ?
To excess a plc over internet i use a VPN. Normaly you add the gateway. But then you see nothing. So for windows plc you add the ipadress of one of the devices behind the vpn. Then you see all. But with a Linux device its not working. I can ping it but cant see it. So i lookt here and they recomend the AWS. So i lookt at the video. Then i tried it. Install gateway for linux or windows. Do they meen PC or PLC ? Then at version 15 there should be an ordner extra on top of the screen. But thats not....
I try to install AWS. But it sucks. They change version 3.5 to 0 . I vieuwd a video. 3.5.15. goto store install aws for linux or windows ?? Are they talking about the plc or my computer? Ive installed linux ( PLC) then there should be a new ordner in de menu Automation server. But nothing there. Why is Codesys nerverecking.
I use a vpn module to connect. When i connect with version 3.5.9 to a controller with Windows. I add the ip adres from the contoller. Then i find everythink thats there. If i use version 3.5.15 to connect to a Controller with Linux . Add the ipadres. Gateway stays red. Why ?
How can i set date and time in a linux controller with codesys. For windows i use : IF set THEN SysTimeRtcConvertDateToUtc(setDate,dwSetTime_local); Result_Convert:=SysTimeRtcConvertLocalToUtc(dwTimestampLocal:= dwSetTime_local , pdwTimestampUtc:= dwSetTime ); setTimestamp := DWORD_TO_DT(dwSetTime); SysTimeRtcSet(dwSetTime); set:= FALSE; END_IF But thats not workin by linux
I used a trend to see a PID control. But when is save the programm under an other name it will crash immidatly. Why is the trend not only active when i want. Is there a simpler way ?
I want to send a mail. Mij device use 3.5sp9p2 but the axample looks to be version 15. Can i use this ? and when i open in version 15 it has problems with the library. When i open in version 17 there are problems with the visualization
Everytime i compile i see softmotion. I dont use that. How can i turn that off ?
Why is there a string end ? I try now with AT %MD Hopefully it will solve my problem.
Thanks ! But same problem. if there is a real or string its a problem. {attribute 'pack_mode' := '1'} TYPE stNIR_400_Ethernet : STRUCT usiDHCP :USINT; sIP_Adres :STRING(16); sIP_Sub :STRING(16); sIP_Gate :STRING(16); sIP_Server :STRING(16); sGauge_ID :STRING(65); usiDiag_Dump :USINT; sDiag_UDP_Adr :STRING(16); sProfinet :STRING(65); arrDummy :ARRAY[1..37] OF USINT; uiCRC :UINT ; END_STRUCT END_TYPE
Codesys 3.5.9.2. I recieve data to an Array. Then i use Sysmemcpy to copy it to a structure .But with real and string it misses a byte. So 16 bytes i have to copy to a string(15). WHY ?? For real i have to copy byte 4-7 to get the right value.
System version is 9.2 I recieve by RS232 a array of data When i copy byte 4-7 into an array of bytes and then syscpy to a real ive got the right value. when i copy it strait to a structure where the position of byte 4-7 is a real. Then the value is moved. I put in a Union struc so you can also see it as an array of byte. witch shows the movement.
Both are the same. rMeasure_value_1 starts at byte 4. but is not the right value. If i memcpy Byte 4-7 to real ive got the right value. So why not as a struc . It looks likes it moves a byte
I copy an array into a strucure but somehowe it moves a byte. Why 36 54 7a 41 schould be 15.46 but it is 6.0.139E-39 witch is 54 7a 41 00
cNoOfByteRec Ive download an example from the store. Same problem
cNoOfByteRec: UINT:=200; //exactly No of byte to receive sDataRec: STRING(cNoOfByteRec); i try diverent values. Somehowe its limit is 16
It looks it is 16 bytes. But Syscomwrite can write more then 16. And Syscomrecieve can do more then 16. So why recieves it 16 byte at a time and not everythink ones
I use Syscom Library, But it recieves everytime max 16 bytes. Why not more at once ? If is send 23 byte. I recieve 16 and 7 bytes ..
Funny. codesys is the right time. FTP the wrong time
When i look to the files on the controller by codesys the time is 2 hour later then when i look bij FTP . Why ?
How can i find my topics on this website ??
I want to use a internet agenda to control a heating system. Has anyone an example ?
When i write with Sysfile in linux controller. It writes. Wh en i Read, i dont get the data. Why ?
For mapping i made a stucture. So i only have to map the first one. But somehowe i have to map them all. Why ? How can i make mapping easy ? TYPE stASDA_T : STRUCT SW : ASDA_UnionSW; Op_Mode_Act : SINT ; Ist_Pos : DINT ; //6064 Ist_vSpeed : DINT ; //606C Input : stASDA_UnionInputs; // 60FD Status : ASDA_UnionMS ; END_STRUCT END_TYPE
I Want to make een VPN connection. So i want to add a gateway. But i cant change Port to IP adres. Why ? Somtimes i can change but now not. Why issnt this stable
Thats working. Now the end question. Witch on is better. DF or lsusb . Df reads the directory. and lsusb an status. so i would think that its better to check a status every second then to read every second a directory.
df -h is working. But cant find sda1. ill think find also is limited to 255 i can see it in the string. Also tried an union. But that also not working properly.
df -h is working. But cant find sda1. ill think find also is limited to 255 i can see it in the string
putty gives : -sh: lsblk: command not found
Never used putty. i look into it. I tried to shut down codesys to get to linux. But that doesn't work the way like in Windows.
LSblk gives only OK$N with or without an stick.
sStdOut is 1000. So to long for LEFT or RIGHT. Limits from codesys. I try Everythink. Also Lookt for an Linux Cource. But a Cource would help me at the moment.
Im testing it. but its one long string. So i tried to set it to an array. But commands like LEFT en RIGHT are limmited to 255. is there an other way ?
Thats working. But not every stick responce with :"Flash Drive"
Thanks. But it looks like it doesn't know lsblk.
Isn't there a normal way to detect an USB stick ? If would expect that the hardware the stick detects and set a status .
sUSB_STICK :STRING := '/media/sda1'; 1: // check for USB Stick udiDirHandle := SysDirOpen(szDir:= sUSB_STICK, szDirEntry:= sDirEntry, diMaxDirEntry:= SIZEOF(sDirEntry), pDirInfo:= ADR(stDirInfo), pResult:= Fehler_Dir); b_Pugged:= udiDirHandle <> 16#FFFFFFFF; //Fehler_Dir = 0; udiCloseError := SysDirClose(hDir:= udiDirHandle);
Thats the way i did it. open the director. If its shows an Error, then there is no stick. But the problem is . if i read a directory its not up to date. Pull out the stick. Then read the stick. it still shows a directory !!
Thanks. i will try it.
I dont know nothing about Linux. Thats the problem. They changed from Windows CE to Linux. Most of it is working. But if i read a directory its not up to date. Pull out the stick. Then read the stick. it still shows a directory !!
Isusb ?? is that a codesys command ? I programm Codesys. Than i want to detect if there's a stick inserted. Ive there it should show the directory. But somehowe linux is not up to date. If i read a directory. then pul out the stick. Then read the diretory. It still shows the directory even if the stick is pulled out.
How can i detect that there is an USB Stick ? With windows is read the directory. But now they changed to LINUX. That doesn't work that way.
with SysTimeRtcConvertDateToUtc and SysTimeRtcConvertUtcToDate i can convert a date to dayofyear ( wYday ). but how can i change wYday back to date ?
how can i find my topic back ??
Still a lot of work. I can map on a fix adres. but then when i add a device i have to move other fixt adresses. Then i can map on the first array variable. But then it doesn't mapp the other variables. i dont know why. it should. The array is a fix structure also the device mapping is a fixt one.
Hi there, to use a can device i have to setup the mapping by entering every variable . by using several equal device its a lot of work. So i try to map on a structure. but somehowe codesys doesn't accept that. somehow i have to enter every one. is there a better way ?
How can i find my old topics back ???