<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Activity for unzu</title><link href="https://forge.codesys.com/u/unzu/activity/" rel="alternate"/><id>https://forge.codesys.com/u/unzu/activity/</id><updated>2021-07-09T11:43:36.234000Z</updated><subtitle>Recent activity for unzu</subtitle><entry><title>unzu modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6ee7dacedb/?limit=25#6db3" rel="alternate"/><published>2021-07-09T11:43:36.234000Z</published><updated>2021-07-09T11:43:36.234000Z</updated><author><name>unzu</name><uri>https://forge.codesys.com/u/unzu/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/6ee7dacedb/?limit=25#6db3</id><summary type="html">Thanks for all the responses. Your suggestions work and are for sure a workaround - however I wonder how codesys has done it and, whether its possible to replicate for user functions. I pass a REAL to SQRT() and receive a REAL, I pass a LREAL to SQRT and receive a LREAL. It looks like there is some hidden type-deduction going on. Something like: FUNCTION SQ : TYPE_OF(x) VAR_INPUT x : ANY_REAL; END_VAR ============================================== SQ := x*x;</summary></entry><entry><title>unzu posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6ee7dacedb/?limit=25#6db3" rel="alternate"/><published>2021-07-09T11:42:43.098000Z</published><updated>2021-07-09T11:42:43.098000Z</updated><author><name>unzu</name><uri>https://forge.codesys.com/u/unzu/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/6ee7dacedb/?limit=25#6db3</id><summary type="html">Thanks for all the responses. Your suggestions work and are for sure a workaround - however I wonder how codesys has done it and, whether its possible to replicate for user functions. I pass a REAL to SQRT() and receive a REAL, I pass a LREAL to SQRT and receive a LREAL. It looks like there is some hidden type-deduction going on. Something like FUNCTION SQ : TYPE_OF(x) VAR_IN x : ANY_REAL; END_VAR ============================================== SQ := x*x;</summary></entry><entry><title>unzu posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6ee7dacedb/?limit=25#9fe5" rel="alternate"/><published>2021-07-07T06:36:55.240000Z</published><updated>2021-07-07T06:36:55.240000Z</updated><author><name>unzu</name><uri>https://forge.codesys.com/u/unzu/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/6ee7dacedb/?limit=25#9fe5</id><summary type="html">Hello, I am trying to understand if it's possible to do function overloading in codesys. Simple example: I want to create a function SQ(x) to calculate the square of x (x*x). I could create a SQ_INT, SQ_REAL, SQ_LREAL, ... for every needed datatype - a very ineffiecient way which would flood my project with many unneccessary functions that I would have to maintain. My investigations lead me to the ANY_-types like ANY_NUM and ANY_REAL. Correct me if I am wrong: 1) I can use them to pass values of...</summary></entry><entry><title>unzu modified a comment on discussion Visualization 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/a3caffc242/?limit=25#a8df" rel="alternate"/><published>2021-06-11T10:40:03.702000Z</published><updated>2021-06-11T10:40:03.702000Z</updated><author><name>unzu</name><uri>https://forge.codesys.com/u/unzu/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Visualization/thread/a3caffc242/?limit=25#a8df</id><summary type="html">Hello, I am trying to depict the state of a machine with lines in a web-visualization. The lines symbolise arm-parts of a roboter - by passing relative offsets I move those arm-parts. The following images show a MWE of what I am attempting to do: tmp1 is used to move the lower point of a line on the horizontal axis: With an offset of 0, the line is perfectly vertically aligned: After setting the offset to 5, the line appears to be cut: Refreshing the vizualization (reloading page in browser) leads...</summary></entry><entry><title>unzu modified a comment on discussion Visualization 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/a3caffc242/?limit=25#a8df" rel="alternate"/><published>2021-06-11T10:39:32.940000Z</published><updated>2021-06-11T10:39:32.940000Z</updated><author><name>unzu</name><uri>https://forge.codesys.com/u/unzu/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Visualization/thread/a3caffc242/?limit=25#a8df</id><summary type="html">Hello, I am trying to depict the state of a machine with lines in a web-visualization. The lines symbolise arm-parts of a roboter - by passing relative offsets I move those arm-parts. The following images show a MWE of what I am attempting to do: tmp1 is used to move the lower point of a line on the horizontal axis: With an offset of 0, the line is perfectly vertically aligned: After setting the offset to 5, the line appears to be cut: Refreshing the vizualization (reloading page in browser) leads...</summary></entry><entry><title>unzu modified a comment on discussion Visualization 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/a3caffc242/?limit=25#a8df" rel="alternate"/><published>2021-06-11T10:39:05.027000Z</published><updated>2021-06-11T10:39:05.027000Z</updated><author><name>unzu</name><uri>https://forge.codesys.com/u/unzu/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Visualization/thread/a3caffc242/?limit=25#a8df</id><summary type="html">Hello, I am trying to depict the state of a machine with lines in a web-visualization. The lines symbolise arm-parts of a roboter - by passing relative offsets I move those arm-parts. The following images show a MWE of what I am attempting to do: tmp1 is used to move the lower point of a line on the horizontal axis: With an offset of 0, the line is perfectly vertically aligned: After setting the offset to 5, the line appears to be cut: Refreshing the vizualization (reloading page in browser) leads...</summary></entry><entry><title>unzu modified a comment on discussion Visualization 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/a3caffc242/?limit=25#a8df" rel="alternate"/><published>2021-06-11T10:36:19.269000Z</published><updated>2021-06-11T10:36:19.269000Z</updated><author><name>unzu</name><uri>https://forge.codesys.com/u/unzu/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Visualization/thread/a3caffc242/?limit=25#a8df</id><summary type="html">Hello, I am trying to depict the state of a machine with lines in a web-visualization. The lines symbolise arm-parts of a roboter - by passing relative offsets I move those arm-parts. The following images show a MWE of what I am attempting to do: tmp1 is used to move the lower point of a line on the horizontal axis: With an offset of 0, the line is perfectly vertically aligned: After setting the offset to 5, the line appears to be cut: Refreshing the vizualization (reloading page in browser) leads...</summary></entry><entry><title>unzu modified a comment on discussion Visualization 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/a3caffc242/?limit=25#a8df" rel="alternate"/><published>2021-06-11T10:35:51.602000Z</published><updated>2021-06-11T10:35:51.602000Z</updated><author><name>unzu</name><uri>https://forge.codesys.com/u/unzu/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Visualization/thread/a3caffc242/?limit=25#a8df</id><summary type="html">Hello, I am trying to depict the state of a machine with lines in a web-visualization. The lines symbolise arm-parts of a roboter - by passing relative offsets I move those arm-parts. The following images show a MWE of what I am attempting to do: tmp1 is used to move the lower point of a line on the horizontal axis: With an offset of 0, the line is perfectly vertically aligned: After setting the offset to 5, the line appears to be cut: Refreshing the vizualization (reloading page in browser) leads...</summary></entry><entry><title>unzu modified a comment on discussion Visualization 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/a3caffc242/?limit=25#a8df" rel="alternate"/><published>2021-06-11T10:30:53.763000Z</published><updated>2021-06-11T10:30:53.763000Z</updated><author><name>unzu</name><uri>https://forge.codesys.com/u/unzu/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Visualization/thread/a3caffc242/?limit=25#a8df</id><summary type="html">Hello, I am trying to depict the state of a machine with lines in a web-visualization. The lines symbolise arm-parts of a roboter - by passing relative offsets I move those arm-parts. The following images show a MWE of what I am attempting to do: tmp1 is used to move the lower point of a line on the horizontal axis: With an offset of 0, the line is perfectly vertically aligned: After setting the offset to 5, the line appears to be cut: Refreshing the vizualization (reloading page in browser) leads...</summary></entry><entry><title>unzu posted a comment on discussion Visualization 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/a3caffc242/?limit=25#a8df" rel="alternate"/><published>2021-06-11T10:28:45.279000Z</published><updated>2021-06-11T10:28:45.279000Z</updated><author><name>unzu</name><uri>https://forge.codesys.com/u/unzu/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Visualization/thread/a3caffc242/?limit=25#a8df</id><summary type="html">Hello, I am trying to depict the state of a machine with lines in a web-visualization. The lines symbolise arm-parts of a roboter - by passing relative offsets I move those arm-parts. The following images show a MWE of what I am attempting to do: tmp1 is used to move the lower point of a line on the horizontal axis: With an offset of 0, the line is perfectly vertically aligned: After setting the offset to 5, the line appears to be cut: Refreshing the vizualization (reloading page in browser) leads...</summary></entry></feed>