Post by trusty-squire on Confused by dwIpoTime input for SMC_Interpolator
CODESYS Forge
talk
(Post)
OK, that makes sense. Because the FB is provided a specific interval period, it would change the target position accordingly based on the time it "thought" elapsed. If it has the wrong interval provided, it updates the target positions every cycle incorrectly so the axes will end up moving faster or slower. Thanks!
Last updated: 2024-07-22
Post by trusty-squire on CNC - How to manipulate SMC_GeoInfo objects
CODESYS Forge
talk
(Post)
Sometimes you just need to pose a question on a forum and re-read it to get clarity. pGeoInfo := SMC_GetObj(poq:=ADR(fbCncInterpreter.poqDataOut), n:=1); This won't work, I'm providing a pointer to a pointer, as poqDataOut is already a pointer! I just need to remove the ADR() and it works. pGeoInfo := SMC_GetObj(poq:=fbCncInterpreter.poqDataOut, n:=1);
Last updated: 2024-07-26
Post by jmfernandes on OpenDir always in error
CODESYS Forge
talk
(Post)
Hello just to give more feedback the error I get is "ERROR_UNKNOWN :represents raw value of 5110" in File.DirOpen. The xDone never gets true, and I never get the listing of files (csv files in this case). In the hDir i get the value of 0 for a DWord!?
Last updated: 2024-07-31
Post by dantheman on Connecting to SoftPLC Only Works By Turning Off Modbus Ethernet Port
CODESYS Forge
talk
(Post)
I've also noticed that when I turn off "enp1s0", suddenly the source IP for the ModbusTCP changes to that of "enp2s0", which is what makes sense to me. When I turn it back on, the source IP remains that of "enp2s0".
Last updated: 2024-08-01
Post by haiderm on MultiTouch : Two fingers pinch to Z00M in/out and rotation gesture.
CODESYS Forge
talk
(Post)
Hello, I am currently trying to implement the Pan gesture and if possible, also the spread-pinch gesture in my project. The Pan gesture seems to work. Was the spread pinch gesture in the meantime fully released, because i haven't been able to get it called? Best Regards, Michael
Last updated: 2024-08-02
Post by flappyman on licenses question
CODESYS Forge
talk
(Post)
I hope this tread will be able to help me. I got your new licenses and it was working perfectly fine. Unfortunately, my PLC got severely damaged and it can not run anymore. Is it possible to somehow release the license so I could use it again. I have all information for the device and can provide it.
Last updated: 2024-08-05
Post by gepert on parker servo and position
CODESYS Forge
talk
(Post)
Gentleman OMG, I made a huge mistake when i tried and moved shaft by hand i hold cover(as on photo) in my fingers. I was convinced that shaft has key but it there is not key. So when i turn cover it slide on shaft. When i take off cover and drive is in standstill, shaft does not move. So everything works perfectly
Last updated: 2024-08-07
Post by maxsus on Error while processing the visualization: Client id not present or no longer valid
CODESYS Forge
talk
(Post)
I dont know exactly why this error happens, but I think its because you have some wrong whiles. Because when i had that problem it was because I accidently wrote while true then and it was stuck in the loop.
Last updated: 2024-08-21
Post by maxsus on Error while processing the visualization: Client id not present or no longer valid
CODESYS Forge
talk
(Post)
I dont know exactly why this error happens, but I think its because you have some wrong whiles. Because when i had that problem it was because I accidently wrote while true then and it was stuck in the loop.
Last updated: 2024-08-21
Post by docker on Webvisu client connection monitoring
CODESYS Forge
talk
(Post)
Hi, i am interested in this thread and have tried a couple of the above examples in to determine remote webvisu access. I am having trouble getting the lastusage variable to refresh during runtime? It seems to only log the last usage at initialisation and that is it? how do i gain ongoing access to the time variable as the code is running? Thankyou.
Last updated: 2024-08-26
Post by lukebouchard on IFM-Sensor ADC READ
CODESYS Forge
talk
(Post)
Get a different sensor that is 0-10V and 0-350 Bar. There is nothing you can reasonably do to boost the range of the sensor, and the PLC will only ever be 0-10V. Take away is to always be careful to match the sensor and PLC input ranges in the future.
Last updated: 2024-08-24
Post by c3po on Von SNMP auf IIoT wechseln
CODESYS Forge
talk
(Post)
Moin, IIoT Lib ist installiert. Aber was der ReadArea macht weiß ich nicht. Wie kann ich denn über die IIoT Lib Daten schreiben oder lesen? Die Beispiele finde ich sehr verwirrend. Bild im Anhang: SetEngineId / CreateSNMPV3User / sOID (drei Balken)oid → was wird da gemacht? Wird da was geschrieben, gelesen?! ich blick es einfach gar nicht. Und da müsste doch irgendwo eine Verschlüsselung eingetragen werden oder?
Last updated: 2024-08-27
Post by dengsberg on Disable Communications to 'Modbus_Server_COM_Port' from the logic
CODESYS Forge
talk
(Post)
I have a serial Modbus RTU communicating to the Slave device. But when the control system is not in Run there is no power applied to one of the Modbus Devices. Can I enable / disable the communications to that Modbus Slave in the code based on my running mode, so I don't get all the errors?
Last updated: 2024-08-29
Post by eozupek on problem con file transfer in raspberry
CODESYS Forge
talk
(Post)
I recently acquired the Opus B4 product from topcon company and encountered a "code 7" error in the Web Visu File Transfer application. I have been unable to locate the CFG files mentioned above. However, I have been able to perform streaming. I would appreciate your assistance in resolving this issue. Sincerely, Emre öZÜPEK
Last updated: 2024-09-03
Post by joep on Creating Custom Kinematics
CODESYS Forge
talk
(Post)
Hi John, Coincidentally I also tried creating a custom kinematics model for a parallel delta2 like the picture I added. bipod_rotary doesn't seem to do the job. Have you accomplished a working model? I'm stuck on error: "smc_cp_invalid_path_elem" while im certain my math is correct since we made it work using single axis movements. Maybe we could help each other Best regards, Joep
Last updated: 2024-09-06
Post by bbm1995 on Camera RTSP Feed
CODESYS Forge
talk
(Post)
Can you provide some infos on what you did? What model is your camera and which protocols does it support? Is there a direct link to the feed? Does your camera prevent embedding of the feed (this was my issue.)? I had to use additional software (go2rtc) to be able to stream the feed from an ABUS TVIP48511...
Last updated: 2024-09-16
Post by kd50 on J1939 DM1 Message
CODESYS Forge
talk
(Post)
Hi all, I am new to J1939 and DM1 field. I would like to work on this topic at my office. Could anyone please give me some information about how l can practice on DM1 topic at my office? Is there any small product l can buy so that l could practice on it? Thanks
Last updated: 2024-09-18
Post by kd50 on J1939 DM1 Message
CODESYS Forge
talk
(Post)
Hi all, I am new to J1939 and DM1 field. I would like to work on this topic at my office. Could anyone please give me some information about how l can practice on DM1 topic at my office? Is there any small product l can buy so that l could practice on it? Thanks
Last updated: 2024-09-18
Post by timvh on Configuring a 2's compliment
CODESYS Forge
talk
(Post)
You could create a DUT of the Type Union and add an array of 2 bytes + an Int. Then write the byte values in the array of the Union and read the Int. Or VAR iInt : INT; byHigh : BYTE := 2#1111_1111; byLow : BYTE := 2#1111_1111; END_VAR iInt := TO_INT(byHigh*16#100 + byLow);
Last updated: 2024-09-28
Post by timvh on FB string and naming
CODESYS Forge
talk
(Post)
Really not clear what you are trying to do, but isn't a Struct enough? So add an object of the type DUT to the Application. Then create a structure TYPE ST_Sensor : STRUCT sName : STRING; uiNumber : UINT; END_STRUCT END_TYPE Then in you application add an instance of this Structure stSensor1 : ST_Sensor := (sName := 'my sensor', uiNumber := 1); or use it like this stSensor1.sName := 'my sensor';
Last updated: 2024-09-28
Post by rh-pk on v3.5 SP19 - Modbus TCP Devices - Channel Limit?
CODESYS Forge
talk
(Post)
Hello jacobwago, I believe that the limit is fixed in the editor, but not in the driver package. There seems to be no link between the driver setting and the editor. Otherwise, I don't know why the input (>10) is blocked, but the function is available. Unfortunately, I cannot offer you any other solution apart from the one mentioned above. Kind regards
Last updated: 2024-09-30
Post by egau on Hard shutdown: no code on device after power on
CODESYS Forge
talk
(Post)
Hi, thanks for the fast response :) Yes I Have a .err file. Sorry I forgot to upload it. It is a binary file though... "Runtime goes in exception before the shutdown ?" I think it goes into exception at the same time as the power is lost...
Last updated: 2024-10-03
Post by tehthoams on Time will not read 12
CODESYS Forge
talk
(Post)
I know this post is a bit old, but i'm having this same issue: At noon, %t[hh:mm:ss tt] is displaying 00:00:00 PM There is no text variable, just using the default functionality of the visualization for the time display. This is running on an IFM CR1102 display. has anyone solved this?
Last updated: 2024-10-10
Post by davidmic on What is this ST syntax?
CODESYS Forge
talk
(Post)
I found some structured text code which contained this statement: bHidden:= TRUE(*NOT _somevariable*) I haven't seen TRUE() used like a function before, and I also haven't seen the enclosing asterisks * * before. What do they do? (sorry if this is a duplicate question, I don't know what words to use to search for this syntax)
Last updated: 2024-10-11
Post by janber on REFERENCE TO in an array
CODESYS Forge
talk
(Post)
Hi all, in the online help it written, that array of reference to data type is not possible. Ok... but if I create array of struct of reference to - everything works fine - please see the screenshots: and it works this way OK. Is it intention or error in compiler 3.5.18.20 and we should avoid it? Thanks a lot, Jan.
Last updated: 2024-10-14
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND
or OR
.