906
7 APPLICATION INSTRUCTIONS
7.20 Data Processing Instructions
7.20 Data Processing Instructions
Searching 16-bit binary data
SERDATA(P)
These instructions search the (n) points in the 16-bit binary data specified by (s2) for the 16-bit binary data specified by (s1).
■Execution condition
■Descriptions, ranges, and data types
*1 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
■Applicable devices
Ladder ST
ENO:=SERDATA(EN,s1,s2,n,d);
ENO:=SERDATAP(EN,s1,s2,n,d);
FBD/LD
Instruction Execution condition
SERDATA
SERDATAP
Operand Description Range Data type Data type (label)
(s1) Search data or the device containing the search data -32768 to 32767 16-bit signed binary ANY16
(s2) Data to be searched or the start device containing the data
to be searched
16-bit signed binary ANY16
*1
(d) Start device for storing the search result 16-bit signed binary ANY16_ARRAY
(Number of elements: 2)
(n) Number of search target data points 0 to 65535 16-bit unsigned binary ANY16
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s1)
(s2)
(d)
(n)
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)