EasyManua.ls Logo

Siemens SIMATIC S7-1200 - Page 282

Siemens SIMATIC S7-1200
1614 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Basic instructions
8.6 Move operations
S7-1200 Programmable controller
282 System Manual, V4.2, 09/2016, A5E02486680-AK
POKE(area:=_in_,
dbNumber:=_in_,
byteOffset:=_in_,
value:=_in_);
Writes the value (Byte, Word, or DWord) to
the referenced byteOffset of the referenced
data block, I/O or memory area
Example referencing data block:
POKE(area:=16#84, dbNumber:=2,
byteOffset:=3, value:="Tag_1");
Example referencing QB3 output:
POKE(area:=16#82, dbNumber:=0,
byteOffset:=3, value:="Tag_1");
POKE_BOOL(area:=_in_,
dbNumber:=_in_,
byteOffset:=_in_,
bitOffset:=_in_,
value:=_in_);
Writes the Boolean value to the referenced
bitOffset and byteOffset of the referenced
data block, I/O or memory area
Example:
POKE_BOOL(area:=16#84, dbNumber:=2,
byteOffset:=3, bitOffset:=5, va
l-
ue:=0);
POKE_BLK(area_src:=_in_,
dbNumber_src:=_in_,
byteOffset_src:=_in_,
area_dest:=_in_,
dbNumber_dest:=_in_,
byteOffset_dest:=_in_,
count:=_in_);
Writes "count" number of bytes starting at th
e
referenced byte Offset of the referenced
source data block, I/O or memory area to the
referenced byteOffset of the referenced dest
i-
nation data block, I/O or memory area
Example:
POKE_BLK(area_src:=16#84,
dbNumber_src:=#src_db, byteOf
f-
set_src:=#src_byte,
area_dest:=16#84,
dbNumber_dest:=#src_db, byteOf
f-
set_dest:=#src_byte, count:=10);
For PEEK and POKE instructions, the following values for the "area", "area_src" and
"area_dest" parameters are applicable. For areas other than data blocks, the dbNumber
parameter must be 0.
16#81 I
16#82
Q
16#83
M
16#84
DB

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals