Mitsubishi Electronics C6 Home Safety Product User Manual


 
8. Function Commands
WOR, WORP
- 238 -
{ WOR, WORP ... Logical OR of 16-bit data
Usable device
Bit device Word device
Con-
stant
Pointer
X Y M L F BSB T SM VTCDRWSWZSDKH P
Digit
desig-
nation
Index
No. of
steps
S
{
{ { { { { {
{
{ { { { { { { { { {
D
{ { { { { {
{
{ { { { { { { {
{ {
3
S1
{
{ { { { { {
{
{ { { { { { { { { {
S2
{
{ { { { { {
{
{ { { { { { { { { {
D
{ { { { { {
{
{ { { { { { { {
{ {
4
Setting data
S2
S1
Data to be logical ORed
or No. of device where
data is stored.
No. of device to store
logical OR results.
D
Setting data
S
D
WOR
WORP
WOR
WORP
D
WORP
S1 S2
S1
D
WOR S2
Operation command
WOR
S D
WORP
S D
Operation command
The logical OR results
are stored in D device.
Data to be logical ORed
or No. of device
where data is stored.
Function
WOR S D
,
WORP
S D
Logical OR is executed for each bit of the 16-bit data in the device designated with D and the device
designated with S, and the results are stored in the device designated with D.
Before execution
D
10 1 1101010100010
WOR,WORP
00 1 0101011011100
16-bit
After execution
10 1 1101011111110
D
S2
WOR S2
S1
D
,
WORP S2S1 D
Logical OR is executed for each bit of the 16-bit data in the device designated with S1 and the device
designated with S2, and the results are stored in the device designated with D.
Before execution
S1
10 1 1101010100010
WOR,WORP
00 1 0101011011100
16-bit
After execution
10 1 1101011111110
D
S2