1 summary of instructions – Omron SYSMAC CP CP1E-N@@D@-@ User Manual
Page 34
1 Summary of Instructions
1-10
CP1E CPU Unit Instructions Reference Manual(W483)
High-speed
Counter and
Pulse Output
Instructions
MODE CONTROL
INI/
@INI
880
INI(880) is used to start and stop target value comparison, to change the
present value (PV) of a high-speed counter, to change the PV of an interrupt
input (counter mode), to change the PV of a pulse output, or to stop pulse out-
put.
2-308
HIGH-SPEED
COUNTER PV
READ
PRV/
@PRV
881
PRV(881) is used to read the present value (PV) of a highspeed counter, pulse
output, or interrupt input (counter mode).
2-311
COMPARISON
TABLE LOAD
CTBL/
@CTBL
882
CTBL(882) is used to perform target value or range comparisons for the
present value (PV) of a high-speed counter.
2-315
SPEED OUTPUT
SPED/
@SPED
885
SPED(885) is used to specify the frequency and perform pulse output without
acceleration or deceleration.
2-319
SET PULSES
PULS/
@PULS
886
PULS(886) is used to set the number of pulses for pulse output.
2-323
PULSE OUTPUT
PLS2/
@PLS2
887
PLS2(887) is used to set the pulse frequency and acceleration/deceleration
rates, and to perform pulse output with acceleration/deceleration (with different
acceleration/deceleration rates). Only positioning is possible.
2-325
ACCELERATION
CONTROL
ACC/
@ACC
888
ACC(888) is used to set the pulse frequency and acceleration/deceleration
rates, and to perform pulse output with acceleration/deceleration (with the
same acceleration/deceleration rate). Both positioning and speed control are
possible.
2-331
ORIGIN SEARCH
ORG/
@ORG
889
ORG(889) is used to perform origin searches and returns.
2-336
PULSE WITH
VARIABLE DUTY
FACTOR
PWM/
@PWM
891
PWM(891) is used to output pulses with a variable duty factor.
2-339
Step
Instructions
STEP START
SNXT
009
SNXT(009) is used in the following three ways:
(1)To start step programming execution.
(2)To proceed to the next step control bit.
(3)To end step programming execution.
2-342
STEP DEFINE
STEP
008
STEP(008) functions in following 2 ways, depending on its position and whether
or not a control bit has been specified.
(1)Starts a specific step.
(2)Ends the step programming area (i.e., step execution).
2-342
Basic I/O Unit
Instructions
I/O REFRESH
IORF/
@IORF
097
Refreshes the specified I/O words.
2-352
7-SEGMENT
DECODER
SDEC/
@SDEC
078
Converts the hexadecimal contents of the designated digit(s) into 8-bit, 7-seg-
ment display code and places it into the upper or lower 8-bits of the specified
destination words.
2-354
DIGITAL SWITCH
INPUT
DSW
210
Reads the value set on an external digital switch (or thumbwheel switch) con-
nected to an Input Unit or Output Unit and stores the 4-digit or 8-digit BCD data
in the specified words.
2-357
MATRIX INPUT
MTR
213
Inputs up to 64 signals from an 8
⋅ 8 matrix connected to an Input Unit and
Output Unit (using 8 input points and 8 output points) and stores that 64-bit data
in the 4 destination words.
2-361
7-SEGMENT DIS-
PLAY OUTPUT
7SEG
214
Converts the source data (either 4-digit or 8-digit BCD) to 7-segment display
data, and outputs that data to the specified output word.
2-365
Serial Com-
munications
Instructions
TRANSMIT
TXD/
@TXD
236
Outputs the specified number of bytes of data from the RS-232C port built into
the CPU Unit or the serial port of a Serial Communications Board (version 1.2
or later).
2-369
RECEIVE
RXD/
@RXD
235
Reads the specified number of bytes of data from the RS-232C port built into
the CPU Unit or the serial port of a Serial Communications Board (version 1.2
or later).
2-374
Clock
Instructions
CALENDAR ADD
CADD/
@CADD
730
Adds time to the calendar data in the specified words.
2-380
CALENDAR
SUBTRACT
CSUB/
@CSUB
731
Subtracts time from the calendar data in the specified words.
2-380
CLOCK
ADJUSTMENT
DATE/
@DATE
735
Changes the internal clock setting to the setting in the specified source words.
2-385
Failure
Diagnosis
Instructions
FAILURE ALARM
FAL/
@FAL
006
Generates or clears user-defined non-fatal errors.
2-387
SEVERE FAILURE
ALARM
FALS
007
Generates user-defined fatal errors.
2-393
Instrucion
Type
Instruction
Mnemonic
FUN
No.
Function
Page