PMMI Programmable Logic Controllers (PLC) 1 Practice Test

Session length

1 / 20

How would you perform an addition between two integers in PLC logic, and where is the result stored?

Use ADD instruction and store result in a destination integer variable.

Addition of two integers in PLC logic is done with the ADD instruction. It takes two integer inputs and stores their sum in a destination that is defined as an integer. This is the best approach because it directly performs arithmetic and places the result in a variable you can use later in the program. Using the SUB instruction would perform subtraction instead of addition, even though it can also write to a destination integer. The AND and OR instructions operate on bits or booleans and do not produce a numeric sum, so they wouldn’t give you an integer result for adding two numbers.

Use SUB instruction and store result in a destination integer variable.

Use AND instruction and store result in a destination boolean.

Use OR instruction and store result in a source integer.

Next Question

Find the option that is right for you!

All options are one-time payments.

$25.99

30 day premium pass

All the basics to get you started

  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 30 day premium pass access
👑$59.99 $171.99 usd

6 month DELUXE pass (most popular)

Everything with the 30 day premium pass FOR 6 MONTHS! & the ultimate digital PDF study guide (BONUS)

  • Everything included in the premium pass
  • $171.99 usd value for $59.99! You save $106!
  • + Access to the ultimate digital PDF study guide
  • + 6 months of premium pass access
  • + Priority support
$15.99 $24.99

Ultimate digital PDF study guide

For those that prefer a more traditional form of learning

  • Available for instant download
  • Available offline
  • Hundreds of practice multiple choice questions
  • Comprehensive content
  • Detailed explanations
Image Description
Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy