@martin-kudláček Okay, thanks. After posting yesterday I managed to figure out the communication errors I was getting, so preventing the NaNs from messing up the chart is less of an issue now.
Best posts made by Matt
-
RE: NaNs in HMI chart
-
RE: SimpleParser documentation?
Thanks, @tomas_hora. I've just gone ahead and written my own in ST, based off the custom serial protocol example. I'm not sure if that sample actually works for serial communications, but for TCP I had to split Case 3 into 2 cases:
3: if io.getportstatus(handle) = 0 then state := 4; end_if; 4: received := io.readport(handle, adr dataRecv[0], 100); if received > 0 THEN output_string := bytes_to_string(adr dataRecv[0], received); output_length := len(output_string); command_out := command_in; last_output_time := getutctime(); state:=5; END_IF;
Not doing this seemed to result in the read buffer being reset before the bytes could be read.
Latest posts made by Matt
-
https redirect
Hi,
I'm using IDEv2.5.0 with an Axon M505. I want to disable http access to the HMI and redirect http to https, so I've set the Networking configuration as shown. Neither seems to work. I'm still able to access the PLC over http despite uploading the configuration and deploying the solution with a cold restart. Is there something else I need to do or do these options just not work?
Thanks
-
RE: Attach PLC via UDP broadcast not finding Axon M525 (after other problems)
FYI, it looks like OS 2.2 just doesn't have mDNS/avahi enabled. I've tried it on the M525 and an M505. I was on a different network so I was trying to find the IP address with avahi, and then resorted straight to flashing it when I couldn't find it.
It looks like IDE 2.1.3 doesn't support the M525. I've got a solution with two existing M505s I wanted to add it to but it doesn't even show up as an option in the manual device list. Do I have to upgrade my solution to IDE 2.2.0 to add the M525? It looks like this will require me to upgrade the OS on the M505s (from 1.9), correct?
-
Attach PLC via UDP broadcast not finding Axon M525 (after other problems)
I've been having problems with a new Axon M525. It initially wasn't showing up in mDNS/avahi/Bonjour, so I tried flashing it via the web service interface. That failed and the web interface stopped working, so I flashed it with a USB drive, which succeeded. It now shows up in mDNS and I can access the HMI, but Mervis does not find it when using the Attach PLC - UDP broadcast. I can find the two M505s I have on the same network.
I have tried attaching with both Mervis 2.1.3 and 2.2.0. I believe the USB drive I flashed with had v1.9 on it.
-
RE: Debug mode not showing variable values in program and function blocks
The controller was not selected. It's working now. Thank you for pointing that out.
-
RE: Debug mode not showing variable values in program and function blocks
Additional info: I'm using a different user account on the same computer where this has previously worked. I see that "Show debug values in ST editor" is an option in the settings. Is it possible that the settings are not being read correctly? I've tried cycling the value of that option and restarting the IDE.
-
Debug mode not showing variable values in program and function blocks
When I go into debug mode I can no longer see the variable values in the fbd or st file viewers. The variables do show in the Variable Browser. Any ideas?
-
RE: Version control for Mervis projects
Here's what I'm using in my .gitignore:
*.bin bin *.exs *.zip */HmiResources */HMI-*
-
RE: How to change the analog transformation on xS50?
Thanks. Not sure how I missed that.
-
RE: How to change the analog transformation on xS50?
Thank you, Martin. It is working properly now. Is there documentation on this or the transformation parameters anywhere? I spent a late night trying to debug this, and even with your instructions it took a couple tries to figure out that the linear scaling factor needed to be the inverse of what I expected it should be.
-
How to change the analog transformation on xS50?
Hi,
I would like to convert an input of 0-100 into an analog out of 0-10V. I have attempted changing the values for the LinearByTwoPoints transform method as well as the Linear method and am unable to get the behavior of the output to change. The LinearByTwoPoints seems stuck at 0-10 -> 0-10V and the Linear method does not output a voltage. Is there a known problem with the transform parameters? I have deployed the project and configured the modules multiple times. The extensions I have appear to be on FW 5.60 and I am running IDE 2.1.3.