Barbara_Cnt
Member
Hallo my engineer friends. It`s my first message in this forum
I really need help from you experienced plc specialists
I`ve big problem with this program part
I have no idea what are the cad and srd commands for and how the program functions? After I read the older posts about cad and srd functionalities in the forum, I feel myself comfortable with the cad-srd function. But after I turn back to this program piece, I totally confused again
I will be really glad with your helps.
I really need help from you experienced plc specialists
I`ve big problem with this program part
Code:
AN #L_Active
O #NO_ButtonSEL
JC j10
//Convert Inputbit to Integervalue
L 0
T #L_LoopCounter
[COLOR=Red]SelB: L #L_LoopCounter
L #L_Buttons
CAD
SRD
L 1
AW
L 1
<>I [/COLOR]
O #L_StatusButtonSelected
// button pressed
JC j11
SET
S #L_StatusButtonSelected
L #L_LoopCounter
+ 1
T #L_SelectedButton
j11: L #L_LoopCounter
+ 1
T #L_LoopCounter
L 20
<I
JC SelB
//Reset Button Input
j10: AN #L_Cancel
A #VOLT_ON
O #NO_ButtonSEL
JC j12
SET
R #L_StatusButtonSelected
L 0
T #L_SelectedButton
T #L_AP_Button
//Enter Button
j12: A #L_Active
A #L_Select
A(
L 0
L #L_SelectedButton
<>I
)
JCN j13
T #L_AP_Button
j13: NOP 0
I have no idea what are the cad and srd commands for and how the program functions? After I read the older posts about cad and srd functionalities in the forum, I feel myself comfortable with the cad-srd function. But after I turn back to this program piece, I totally confused again
I will be really glad with your helps.