Industry Online Support
Technical Forum
8/2/2010 7:13 AM | |
Posts: 43 Rating: (2) |
Hi, It is possible to read the Single bit in part program For Eg: In my PLC hardware configuration i used starting input isi32 but i need to read the input i32.1in the part program. Pleaseadvice...... Y.Dhinakaran. splitted from READING PLC I/O'S IN PART PROGRAM. |
Last edited by: O_Moderator at: 8/2/2010 12:38 PMnew subject after splitting |
|
8/2/2010 8:10 PM | |
Joined: 3/19/2006 Last visit: 4/29/2024 Posts: 594 Rating: (78) |
Read the Byte EB32 and decode Input E32.1 DEF INT PLC_INPUT1 ='B00000010' ; EXX.1 DEF BOOL E32_1 E32_1 = ($A_PBB_IN[0] B_AND PLC_INPUT1) or IF ($A_PBB_IN[0] B_AND PLC_INPUT1) == 1 E32_1=True ELSE E32_1=false ENDIF |
Follow us on