Instructions Introduction
CICON Instructions
CICON offers over 400 different instructions to manipulate the values of data registers. Instructions include basic arithmetic, such as addition, subtraction, multiplication, and division, or more complex instructions for PID, like initialization and calculation.
This section also provides the different contact types under the Contacts category and the different connection types under the Connections.
About This Section
The Instructions tab provides information and examples about all instructions provided within CICON. Expand the categories to view different examples, including Ladder Diagram, Structured Text, Instruction List, Sequential Function Chart, and Function Block Diagram.
Click the individual categories in the navigation bar, on the left, to view more information about each instruction, including acceptable data registers, number of steps, and warnings.
Identifying Operations for Different Data Types
Most instructions allow for manipulation of different data types. This includes BOOL, WORD, DWORD, REAL, and other data types.
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 instruction.
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-coded 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 instruction 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.