The leader in industrial automation and control solutions

MapleLogic offers over 400 instructions to manipulate the values of data registers. This section provides information and examples about instructions provided within the software.

Instruction Prefixes

When using basic instructions, such as addition, there are instructions reserved for each data type. For example, adding WORD data types requires the ADD or ADDP instruction, but adding DWORD data types requires the DADD or DADDP instructions.

The following prefixes are typically used for different data type instructions:

  • no prefix: WORD
    • Example: ADD adds WORD data registers.
  • D: DWORD
    • Example: DADD adds DWORD data registers.
  • E: REAL
    • Example: EADD adds REAL data registers.
  • B: 4-digit binary-doded decimal (BCD)
    • Example: BADD adds 4-digit BCD data registers.
  • DB: 8-digit binary-coded decimal (BCD)
    • Example: DBADD adds 8-digit BCD data registers.

Instruction Suffixes

Most instructions include two variants: one without a P suffix and one with a P suffix. Both of the instructions, regardless of the P suffix, function the same way. The P suffix means pulse.

If the instructions doesn’t have the P suffix attached to it, it will execute once per scan. For example, the ADD instruction will execute once per scan until the execution condition is false or off.

If the ADDP instruction will execute only once. To execute the instruction again, the execution condition must be powered off and on again.

In this section

Browse the pages in this section for detailed information on each topic.

  1. Application Instructions

  2. Basic Instructions

  3. Connections

  4. Contacts

  5. Rung