pg. 8
STEP 5 – UNDERSTANDING THE SIGMA TILE PYTHON SCRIPT
The heart of the Sigma Tile is the
found in the
. This script reads the Sense Hat sensors and
uses the MODBUS protocol to communicate between Raspberry Pi and Kepware.
Modbus is a serial communication protocol developed in 1979 for use in Programmable
Logic Controllers (PLCs). You can find the details about this protocol at
Raspberry Pi will act as the server and Kepware will be a client. The python scripts will
simply initialize the Modbus server and update the values from the Sense HAT when it
receives the request from the client. We use pymodbus libraries, the details of which
can be found at
https://github.com/bashwork/pymodbus
. Other libraries and protocols
are available which are not in the scope of this documentation.
Other aspects of the code include the reading of the Sense HAT’s joystick position to
trigger various events: change of the LED Display mode and change of the Error Code
values as illustrated in the picture below:
For more details on the functional aspect of the Sigma Tile python script, please refer to
the Learn KepServerEX Using a Sigma Tile guide and the Learn ThingWorx
Manufacturing Apps Using a Sigma Tile guide.
STEP 6 - CREATING MICRO-SD CARD WITH SIGMA TILE SOFTWARE
Содержание Sigma Tile V5
Страница 1: ...BUILD A SIGMA TILE GUIDE Sigma Tile V5 05 07 2018...
Страница 24: ...pg 24...