Please help, I am pulling my hair out .
I have a IM151-8 PN/DP CPU PLC with a few Serial Com cards (
ET200S 1SI ) for reading barcodes.
Firstly I want to know if this is possible.
Because all barcodes work similar, I wanted to use a FC and within the FC I use the S_Send and S_Rcv FB’s which each have its own instance DB. Basically when I send a start signal, it send a start signal and then read the barcode, pretty straight forward and when I do this on its own all is good.
I use indirect accessing inside with the FB, but this is working. The problem comes when I add the S_SEND FB or S_RCV FB. It firstly gives me an ‘STOP caused when allocating local data’ fault and sometimes a FB not loaded. I have about 40% memory left on the device.
When I use just working FB from my test within the ‘pull my hair out FB’ it still gives the fault, without using indirect addressing.
Please, any advice would be greatly appreciated
I have a IM151-8 PN/DP CPU PLC with a few Serial Com cards (
Firstly I want to know if this is possible.
Because all barcodes work similar, I wanted to use a FC and within the FC I use the S_Send and S_Rcv FB’s which each have its own instance DB. Basically when I send a start signal, it send a start signal and then read the barcode, pretty straight forward and when I do this on its own all is good.
I use indirect accessing inside with the FB, but this is working. The problem comes when I add the S_SEND FB or S_RCV FB. It firstly gives me an ‘STOP caused when allocating local data’ fault and sometimes a FB not loaded. I have about 40% memory left on the device.
When I use just working FB from my test within the ‘pull my hair out FB’ it still gives the fault, without using indirect addressing.
Please, any advice would be greatly appreciated