I am in the initial stages of setting up a profibus network using siemens 315 2DP plcs. I have followed this guide to setup the network. So far I have used the following code to get an input in the master to turn on an output in the slave.
This project will have three parts flowing through various machines each machine with its own plc. One of these machines uses three sensors to determine the type of part. I would like to use the sensor status (either on or off depending on the part) to create a memory word. I want to send that word to the next machine on the line so it can then appropriately deal with whatever part has been given to it.
My question for now is: are the system functions SFC_14 and SFC_15 the correct functions to use to transfer the word. Or will the word be too small for these functions to work since it seems they are used for transfering 4bytes of data while I have less than one to transfer. Also i believe that I will have to change the consistency ( the table on step 17 in the document I linked to)from unit to total length as well as the byte size for these functions to work is this correct?
I'm in a bit over my head so any help is great
in the master:
I0.0 Q40
--| |-----------( )
in the slave:
I40 Q4.0
-| |-------------( )
This project will have three parts flowing through various machines each machine with its own plc. One of these machines uses three sensors to determine the type of part. I would like to use the sensor status (either on or off depending on the part) to create a memory word. I want to send that word to the next machine on the line so it can then appropriately deal with whatever part has been given to it.
My question for now is: are the system functions SFC_14 and SFC_15 the correct functions to use to transfer the word. Or will the word be too small for these functions to work since it seems they are used for transfering 4bytes of data while I have less than one to transfer. Also i believe that I will have to change the consistency ( the table on step 17 in the document I linked to)from unit to total length as well as the byte size for these functions to work is this correct?
I'm in a bit over my head so any help is great
Last edited: