Hi mate, With this snippet i was able to see the lastusage variable count, but it would not iterate between clients? i was only able to access the data of the target visu. it threw an error with the array of pointers stating it was not able to convert etc. also when i tried it with the while loop it created an endless loop and crashed the program. any ideas? Thankyou
can you send me some code snippets of the declarations and code need i am unsure of how to set the pointer to the correct visu client. Thanks i appreciate your help.
Thanks for the reply, i am using codesys SP16 patch 5 as this is the version that is compatible with my IFM controller. i am accessing the lastusage variable from the VisuStructClientData structure through a pointer. when i log in it lists the time since last log in but does not continually count, it remains a static value which isnt useful. hopefully you can help. Thankyou
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.
hi, i am currently trying to adapt an i/o device for a project. the node id is unknown and there is no eds file available. no data is being emitted from the device as a giveaway, the baudrate is known but useless without the node id. is there an sdo request available to determine the id? i cannot get the device to leave pre op status even with a global nmt request. please help. no hair left.
not looking forward to setting up function blocks for this :( oh well we will prevail.
I am also having the same issue. I have read somewhere that can variable lists are not available on 3.5, surely this isn't the case? Hoping for some enlightenment.
hi all, i am trying to create a program using codesys control win as the plc and ifm cr2012 i/o modules as the outside interface. the data is trasmitted via canopen, i am using the provided eds files for the configuration of the i/o modules. i am having no problem receiving binary inputs but dont seem to be receiving any values for the analogue inputs. i can see on my pcan software that the data is being transmitted but it isnt appearing on the mapped variables in the device? any ideas why would...
hi all, i am looking to create a HMI collecting and transmitting data over canopen. the hmi i am using is programmed via codesys 3 while the application for the plc is programmed via codesys 2.3 i am used to codesys 2.3 which provides function blocks for the reception/transmission of the data bytes in arrays which you can use. i cannot seem to find this library on codesys 3.5, is there a seperate library for this available for download or am i missing something. thankyou
hi all after a bit of advice, i am reading byte values which are sent as a word from the transmitting node in a can packet and am unsure how to combine the 2 byte values once they have been received to create a word which can be used as inputs to function blocks. i am sure there is a simple solution but i cant seem to figure it out. thankyou
Thanks for your reply, the preference would be to have the machine ignition supply to somehow boot up the PC so the user would not have to toggle the computer power each time the machine is started/stopped. How is this possible? Thankyou
Hi, I am using codesys HMI to control and display values on a mobile machine, i am planning to use a windows laptop as the machine interface, is it possible to boot the computer directly into the HMI application triggered by the 'ignition on' of the machine and then following that shutting the computer down with ignition off? thanks
hello, i am using codesys control win with a pcan driver to control a cat engine. i am currently having problems assigning a byte value to the tsc1 engine override variable to initiate the requested engine speed control of the engine. i assign the variable from the j1939 i/o mapping as a 1 in a pou and it faults with the error code "no valid assignment 1" (cannot convert byte to bit) why is this? i have even tried to individually assign the bits of the byte variable bit am greeted with the same fault....
thanks mate, the driver is 64 bit, i have just ordered a pcan interface so hopefully have more luck with that.
thankyou for the reply. in the logger it says canfox driver has not loaded why is this? what can i check? thanks
hello i am having trouble loading my canfox driver with the codesys control v3 system. the plc log states no driver found, and during the startup of the codesys control v3 system it states that the canfox driver has not been loaded due to error "12". what am i doing wrong i have looked in the component manager of the config file and the canfox driver is listed as component 10. is there anything i can try? thankyou
I have developed a project on codesys v2.3 for a cr0032 ifm controller. i am trying to integrate a HMI unit for diagnosing purposes and have come across the codesys HMI app. I am trying to emulate the visualizations from my project into the HMI exe and am having no luck, i have followed the instructions in the visualizations manual and still having trouble can someone please give me some guidance as i am at my wits end.