Hello everyone,
I have just completed this program and want some suggestions/ inputs before testing to get this done efficiently.
I'll be really grateful for any suggestions/ errors pointed out.
This is the overall program.
Initialized com port
Protocol Configuration
I need to send this request and stored EA020113 in MI-1.
Stored value (EA020113) is sent after 100ms interval.
This is the send protocol which I have used.
Following is the expected response from the sensor.
I have used STX, 2 byte variable and checksum.
This is my checksum byte setting.
The two byte response is stored in MI-10 and as per response 0-11 bits contain speed. So, I have used following masking technique (0x0FFF AND Response) to get 0-11 bits which are then stored in MI-15.
Then finally created this Numeric variable on HMI (Link: MI-15) to display speed.
Please someone go through steps and check everything is fine. Specially, checksum in receive and masking of received message.
Regards
Shahid