uptown47
Lifetime Supporting Member
Hi all
I'm looking at an S5 program and it has the following code:
I am presuming that EB 1 is german pnemonic for IB 1.
I've looked in the S5 programming manual and found out that PY is a peripheral byte. So I know that the code is taking a peripheral byte and putting it into an Input Byte. Is this correct?
There is no physical input byte 1 on the system.. is this correct? Should it not transfer to a Flag Byte?? Or can you just use imaginary Input Bits like this?
My main question however is where does the "Peripheral Byte" come from?
I can't see any network on the PLC so where could it be coming from?
If it helps the code is in OB2 which I've read is an "interrupt OB" and the S5 PLC (a 942B CPU) has a Digital 8x24vDC Input Card on it that's a "434 input module with interrupt" that's address 0.0 to 0.7. I'm not sure if that's relevant or not but thought I'd mention it.
Anyone any ideas on this?
Cheers
I'm looking at an S5 program and it has the following code:
L PY 1
T EB 1
I am presuming that EB 1 is german pnemonic for IB 1.
I've looked in the S5 programming manual and found out that PY is a peripheral byte. So I know that the code is taking a peripheral byte and putting it into an Input Byte. Is this correct?
There is no physical input byte 1 on the system.. is this correct? Should it not transfer to a Flag Byte?? Or can you just use imaginary Input Bits like this?
My main question however is where does the "Peripheral Byte" come from?
I can't see any network on the PLC so where could it be coming from?
If it helps the code is in OB2 which I've read is an "interrupt OB" and the S5 PLC (a 942B CPU) has a Digital 8x24vDC Input Card on it that's a "434 input module with interrupt" that's address 0.0 to 0.7. I'm not sure if that's relevant or not but thought I'd mention it.
Anyone any ideas on this?
Cheers