Home > Forum > Distributed I / O modules > Communication with Yotta A-1xxx Modules
- This topic has 6 replies, 2 participants and was last updated 2 years, 10 months ago da Sergio Bertana.
-
AuthorPost
-
April 26, 2019 at 6: 51 am #47370MarcoParticipant
There is a link to an example code for SlimLine to communicate with a device like Yotta A-1051 and A-1055S?
It is not clear to me whether the module can work with the Modbus RTU protocol directly with the P2 field bus or not.
April 26, 2019 at 7: 02 am #47374Sergio BertanaAdministrator ForumThe Yotta modules support both the Modbus RTU protocol and the ascii protocol in a multi-hid RS485 connection, therefore they can be managed from any RS485 serial connection such as the one available on the P2 connector of the CPU module CortexM7. Alternatively you can use an RS232 port using a Serial / Serial converter.
To manage the modules you must use the ModbusMaster FB, if you enter ModbusMaster in the forum search you will find many examples from which to draw inspiration for the program.
August 22, 2019 at 3: 30 pm #49346MarcoParticipantI keep having problems with YOTTA modules with RS485 connection, it is not possible to access the basic configuration of the device to change its parameters. Connected directly to a PC via TCP / RS485 converter and using the “Yotta utility” application, a connection cannot be established.
The tool correctly identifies the device, or rather the different devices in my hands, but when you point the device to open its features, the software returns the message: "Yotta control: com1000 disconnected " and freezes.
Considering the electrical connections (two-wire) I first thought of a malfunction of the ATC converter you purchased, but trying with a different MOXA converter that habitually I use in other applications the result is always the same: the same message is also returned.
In no document or manual available is it indicated what the message refers to. I cannot find an example scheme of connections and / or configurations that refers to the YOTTA A10xx modules marketed by you (and purchased by me) in the forum or in the documentation available, if not for the WIFI one.
An RS485 connection with the may be trivial SlimLine but with these non-configurable modules it is not possible to connect.
Thanks in advance for advice on this.
August 22, 2019 at 3: 38 pm #49411Sergio BertanaAdministrator ForumYou do not write which model of Yotta modules you are using, today I tried on a PC with "fresh" installed Windows 10, I installed the program Yotta Utility vers. 5.7.32 downloaded from our site and connected to an A-1012 module.
Executing the command Search for modules (The binoculars logo), as you say, the module is seen connected to the serial port and with a double click on the step module to the setting window from which it is possible to test and configure the module.
Now since in your case you can't open the settings window, I would try to reinstall the program, and / or try another PC. I wouldn't want any program running on your PC to create the problem.
August 22, 2019 at 4: 36 pm #49412Sergio BertanaAdministrator ForumAs an example, here is a simple FBD program that connects to the Yotta A-1012 module and acquires the 2 digital inputs and commands the 2 outputs. As you can see I used the default settings of the 9600 module, n, 8, 1 and as a Modbus node I defined the 0 node which is the broadcast node. Attention if you use 0 node you must have only one device connected.
In the program you can add FB instances SAModbusCmd to manage other modbus data, as you see from screenshot of the program I set timeout and delay times on the second 1 communication to allow you to see the Modbus data via the espionage cosole, see the Toolly window (Project download).
June 4, 2021 at 8: 02 am #60118EnricoParticipantIn reference to post # 49412 I used the project “20190822043944.zip” with a Yotta A-1060 module but I can't get it to work (the two outputs do not activate when the inputs are in the on state).
The Yotta module is correctly programmed, visible and controllable by the yotta SW.
Is it possible to have the program for the yotta A-1060 model perhaps by commanding the outputs on the Yotta module to PLC?
I am using one SlimLine MPS050.
June 4, 2021 at 8: 13 am #60131Sergio BertanaAdministrator ForumYotta modules are managed in Modbus so it is possible to manage them directly using the FB ModbusMaster alone or combined with the FB ACModbus. To simplify its use, I have created some specific function blocks for some modules that I have grouped in the program Ptp177 downloadable from the site.
As you can see in the example there is the FB YottaA1860 for the A-1860 module which has the same I / O configuration as the A-1060 module. So if you use the program FBD_YottaA1019 replacing the FB with the YottaA1860 you should be able to manage your form.
But the purpose of this demonstration is precisely to enable you to understand how to manage modules using the FB standards inserted in your own FB suitable for managing the module you need.
-
AuthorPost
- You must be logged in to reply to this topic.