Author Topic: MessageListByBit use by modbus read coils(1x)  (Read 1445 times)

Taka_Y

  • Newbie
  • *
  • Posts: 27
    • View Profile
MessageListByBit use by modbus read coils(1x)
« on: March 09, 2018, 12:55:28 AM »
Hello,
I would like to make event log by MessageListByBit use by modbus read coils.
Modbus address like a below...
00001:Emergency ShutDown
00002:Pressure low
00004:Over speed
etc
And also I do not understand the difference between MessageListByBit and MessageListByValue.
Can you please help me?
Taka

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5266
    • View Profile
    • AdvancedHMI
Re: MessageListByBit use by modbus read coils(1x)
« Reply #1 on: March 09, 2018, 04:49:52 AM »
MesageListByBit
- Looks at individual bits within a word to represent each alarm
- Number of alarms limited to number of bits (e.g. 32)

NOTE :  MessageDisplayByBit can rotate through multiple alarms simultaneously



MessageListByValue

- Looks at the integer value to determine the alarm to display
- Number of possible alarms limited to the integer (e.g. 65535)

NOTE: MessageDisplayByBit can only show 1 alarm at a time and the PLC must rotate the Value to show multiple alarms.


The MessageByxxx controls cannot be used with bit addresses in Modbus. They must be used with integer registers such as 40001
« Last Edit: March 09, 2018, 04:54:04 AM by Archie »

TLane

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: MessageListByBit use by modbus read coils(1x)
« Reply #2 on: March 11, 2018, 04:58:40 AM »
Thank you very much!

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5266
    • View Profile
    • AdvancedHMI
Re: MessageListByBit use by modbus read coils(1x)
« Reply #3 on: March 15, 2018, 12:20:09 PM »
Try the attached modified version of the MessageListByBit. It has multiple new properties:

PLCElementBitWidth - set to 1 for reading coils
PLCNumberOfElements - set to a number up to 62 for the number of bits
PLCAddressValues - now is plural because it can accept an array

- Download the attached file
- In Solution Explorer expand down AdvancedHMIControls
- Right Click the Controls folder and select Add Existing Item
- Browse to the file you downloaded
- It will replace the existing
- Build the solution

Taka_Y

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: MessageListByBit use by modbus read coils(1x)
« Reply #4 on: March 16, 2018, 01:15:57 AM »
Archie,
Thank you for your great support!

I tried this but I have several problems.

1.When the build solution that has error BC30456 GetComponet is not Utilites mamber line of 142.
   I transplanted Events from oldone. The error disappeared.I do not know whether it is correct or not.
   Then it became possible to operate with a coil(1x).

2.As you know I want to display each error with multiple coils. PLCAddressValues can input array address?
   Could you tell me how to that?

Thank you very much.

Taka_Y

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: MessageListByBit use by modbus read coils(1x)
« Reply #5 on: March 28, 2018, 04:41:01 AM »
Archie,
This problem was solved all by MessageListByItem of 3.99y.
Current situation AHMI is perfectly working in all my requirements.
AHMI is no way inferio to other costly HMI!
I really appreciate you.
Taka