• We will be performing upgrades on the forums and server over the weekend. The forums may be unavailable multiple times for up to an hour each. Thank you for your patience and understanding as we work to make the forums even better.

looking for help with my PLC class.

Learn the NEC with Mike Holt now!
Status
Not open for further replies.

Freshlife706

Member
Location
Augusta ga
Occupation
Maintenance technician
Question-1.png


doing a lab for my plc class and reaching out for help to try and understand.
 

jim dungar

Moderator
Staff member
Location
Wisconsin
Occupation
PE (Retired) - Power Systems
What part of the compare function is giving you problems?
Dont you have a variable value being compared to a constant value?
Doesn't the thumb wheel binary input get decoded into someplace?
 

Freshlife706

Member
Location
Augusta ga
Occupation
Maintenance technician
so would the variable value just have to be 5 to be equal to the constant value?
i was thinking that variable 2 would have something to do with the BCD but 2 = 0010 and 5= 0101

I'm just reaching out because the teacher that i have has no idea how to explain this to my class and gets nowhere, the book that we have does not explain this process at all.
 

jim dungar

Moderator
Staff member
Location
Wisconsin
Occupation
PE (Retired) - Power Systems
so would the variable value just have to be 5 to be equal to the constant value?
i was thinking that variable 2 would have something to do with the BCD but 2 = 0010 and 5= 0101

I'm just reaching out because the teacher that i have has no idea how to explain this to my class and gets nowhere, the book that we have does not explain this process at all.
Ignore the actual value of the thumbwheel shown in rung one.

The question simply asks what value of the thumbwheel is need to fulfill the compare function for the red light in rung #3.
 

Freshlife706

Member
Location
Augusta ga
Occupation
Maintenance technician
Not according to the logic provided which has three rungs containing an Equal compare, a Less Than compare and a Greater Than compare with corresponding colored lights.
so on rung 3, does the variable value just have to equal to the constant value to make the red pilot light to turn on?
 

jim dungar

Moderator
Staff member
Location
Wisconsin
Occupation
PE (Retired) - Power Systems
does the class understand how to read binary?

if not, there's the problem
That is not part of the OP question, which can be answered solely be looking at rung #3.
Thee program might not even be running, so none of the rungs may be displaying real vaules at all.
 

drktmplr12

Senior Member
Location
South Florida
Occupation
Electrical Engineer
That is not part of the OP question, which can be answered solely be looking at rung #3.
Thee program might not even be running, so none of the rungs may be displaying real vaules at all.
OP followed up and stated that the instructor could not this to the class so there is a fundamental miscommunication or misunderstanding. That prompted my response.

The question is what value the thumbwheel will turn on the light, not what value of Variable_Value. One needs to know how to read a BCD to complete the problem. If the class doesn't understand BCD, they can't interpret what a FRD instruction is doing.
 

jim dungar

Moderator
Staff member
Location
Wisconsin
Occupation
PE (Retired) - Power Systems
if one can't read a BCD, one can't understand what an FRD is doing. It might as well be converting Sanskrit to an integer.
And the OP question was dealing with the value needed in rung 3 for the red light, so it must have been about the Compare function.
 
Status
Not open for further replies.
Top