Author Topic: Absolute Beginner  (Read 1817 times)

sualk2619

  • Newbie
  • *
  • Posts: 3
    • View Profile
Absolute Beginner
« on: November 10, 2022, 06:42:55 AM »
Hello,
I need some help in rather stupid questions, because I did not find something like a complete written tutorial.

My first steps:
I wrote a small program with openPLC (ST) witch runs at raspberryPi4. ModbusTCP installed and running.
It`s just a very simple thing, to check the possibilities of AHMI.
Did a lot of things in Codesys. I will try to change from Codesys to OpenPLC together with AHMI.

- what is the PLCaddressvalue, and where did I get it (e.g. to display real variable "var_1" from somewhere in the program

- if PLCaddressvalue is a internel address of the machine, it should change when I modify my plc-programm. Do I have to change the PLCaddressvalue in AHMI after each modification of my plc-program ?

- are simple exampels available for displaying variables and for input numbers in variables (usual IED 63111 types) 

Thank you very much for help


Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Absolute Beginner
« Reply #1 on: November 10, 2022, 09:33:52 AM »
AdvancedHMI uses the common Modicon style addressing, such as 40001. You will need to find the Modbus address that corresponds to the variable in your controller.

AdvancedHMI also accepts a FunctionCode:Offset, e.g. 3:0001

bachphi

  • Hero Member
  • *****
  • Posts: 642
    • View Profile
Re: Absolute Beginner
« Reply #2 on: November 10, 2022, 03:49:45 PM »
I propose to Archie to add some addendum to the UsageAndLicense file:

Code: [Select]
No absolute beginner shall use AAHMI with a Raspberry PI as a PLC.
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

sualk2619

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Absolute Beginner
« Reply #3 on: November 11, 2022, 03:15:54 AM »
Thank you Archie.
Response to bachpi: I am a absolute beginner with respect to AHMI/OpenPlc. I worked more the 15 years on codesys and may be I'm a little spoiled by using this complete system of PLC-programing+built-in HMI with complete documantation.

What I need is simply an example program, written in ST with OpenPLC, with demo-varialbles of all types, which are displayed and/or manipulated with AHMI via modbusTCP. That will be absolute enaugh to find my way.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Absolute Beginner
« Reply #4 on: November 11, 2022, 08:08:35 AM »
Based on this page:

https://openplcproject.com/docs/2-5-modbus-addressing/

In the table of addresses:

Holding Registers   Memory (16-bits)   %MW0