Master-Slave master side SW architecture with Custom RS422 full duplex protocol

hagaib

Member
Join Date
Feb 2014
Location
israel
Posts
10
Hey,
i'm working on implementing the master side of a custom serial master-slave protocol between a B&R PLC and an electronic card.
As part of the data i'm sending and receiving is used to close various loops(e.g. cascaded temperature control where the temperature sensors and actuators are connected to the electronic card) , but other data is not as usefull (e.g. various data used for display or at specific times), i believe i will also need to implement some sort of priority mechanism.

my first question is - based on your experience - how would the general master side SW architecture look like?
(for example - the send side of mine is comprised of 3 tasks all running under the same cycle - lower level task in charge of opening the port, sending the data etc, a mid level task in charge of creating the packet based on command from upper level, giving commands to lower level and using status from it to continue and finally - an upper level task in charge of deciding which messages to send).

my second question is - how would you implement the priority mechanism?

thanks
 

Similar Topics

Hi i using Kinetik 300 2097 driver control by EIP with using move absolute and incremental for motion , but i want to add same driver and motor as...
Replies
0
Views
18
Does anyone have an example project of the cm ptp ET200 SP HA with 410-5H DCS (PCs7 9.1 SP1) for MODBUS MASTER/SLAVE communication ?
Replies
2
Views
130
Hello, I am trying to create an AOI that will retrive the clock datetime bits from a master plc through a generic message read instruction and...
Replies
2
Views
499
Hello, I know little English, I want to use 4 plc cqm1 as slave (modbus), and hmi delta as master. Unfortunately, I cannot establish rs485...
Replies
3
Views
589
Hello, I am quite new to PLC programming. The master would be a Beijier HMI (iX T12B SC) and the slave a Beijier Nexto (XP340). I have...
Replies
12
Views
3,240
Back
Top Bottom