First of all, you need to check your IO-Link master and sensor to know how to proceed, but in most cases between different manufacturers is quite similar thanks to IO-Link standard.
Let’s check an IM5184 sensor connected to port 2 in a AL1350 master at 192.168.0.20
curl
curl -d '{"code":"request","cid":1,"adr":"/iolinkmaster/port[2]/iolinkdevice/iolreadacyclic","data":{"index":1002,"subindex":1}}' http://192.168.0.20
httpie
http POST 192.168.0.20 code=request cid:=1 adr=iolinkmaster/port[2]/iolinkdevice/iolreadacyclic data:='{"index":1002, "subindex":1}'
This would give us an hexadecimal value ready to use.
HTTP/1.1 200 OK
Connection: keep-alive
Content-Type: application/json
Transfer-Encoding: chunked
{
"cid": 1,
"code": 200,
"data": {
"value": "00022FE5"
}
}
Formula validator
/in HTML5, JavaScript/by GénesisDefine formula using variables and check if it’s a valid math expression using Math.js
How to disable and/or remap buttons on your mouse
/in Tooling/by GénesisUse the program xev through grep to show only ButtonPress events.
Create a file called .Xmodmap
Inside the file disable and/or remap buttons you detected with xev
Check it.
Allow markers only within an area
/in JavaScript/by GénesisMap area for your makers using a polygon.
This was used as a challenge during one of our selection processes.
Read IO-Link sensor info
/in Tooling/by GénesisFirst of all, you need to check your IO-Link master and sensor to know how to proceed, but in most cases between different manufacturers is quite similar thanks to IO-Link standard.
Let’s check an IM5184 sensor connected to port 2 in a AL1350 master at 192.168.0.20
curl
httpie
This would give us an hexadecimal value ready to use.
Detect your IO-Link masters
/in Tooling/by GénesisIf your IO-Link masters are connected to your network, you can use arp-scan command-line tool to discover and fingerprint ARP (Address Resolution Protocol) hosts.