[TIA PORTAL] How do i point to a BOOL?

Smeagol

Member
Join Date
Aug 2020
Location
Mordor
Posts
10
This is how my GET is configured:

CALL GET , "GET_DB_1"
remote_type:=Any
local_type:=Any
REQ :="Blinker 1 sec"
ID :=W#16#1
NDR :=
ERROR :=
STATUS :=
ADDR_1 :=P#DB14.DBX244.0 BYTE 1
ADDR_2 :=
ADDR_3 :=
ADDR_4 :=
RD_1 :=P#DB8.DBX0.0 BYTE 1
RD_2 :=
RD_3 :=
RD_4 :=

I want to do a GET from one S7 300 PLC to another, I configured the GET block but i am confused on how to point to a bool.

In my DB the bool offsets are 0.0 to 0.7, and in my pointer it requires me to put BYTE 1 after the pointer. Does that mean that the PLC will GET the whole byte instead of a single bit? i just need to get one single bit from the other PLC in mine.:geek:
 
Yes, you will get 1 byte so you will have to copy the bit from a buffer DB to where you wish to use it.
 
Yes, you will get 1 byte so you will have to copy the bit from a buffer DB to where you wish to use it.

So lets say i have 6 bits i need to GET from the other PLC. They are all put in 0.0 to 0.7 in my DB in there. I do GET on the whole byte and its now in my GET_DB. How do i split this byte up into bits again? what is the command? i program in STL. Sorry if its a stupid question im not that good at this (y)

EDIT: NVM i got it i just do

A DB2.DBX0.3

and i get the 0.3 bit in my byte! thanks for the reply
 
Last edited:

Similar Topics

I'm trying to set up a tag on TIA portal v15 that will allow the operator to enter a day and time that will act as a setpoint for a sequence to...
Replies
4
Views
2,806
Hi All, Someone at work has put a PLC system on my desk, that's just been taken off an idle production line. He said "It's an S7 PLC. We don't...
Replies
10
Views
256
Hi guys , I'm new with Allen Bradley, but I have experience with Tia portal (s7 1200 ,s7 1500) I want to convert my project from Tia portal to...
Replies
2
Views
210
Hi, I have had problem with upgrading some projects from v16 to v18. I tried it on 3 diffrent computers. I want to post this so that anyone that...
Replies
3
Views
176
Hello gentlemen, Im working on a small project on TIA Portal, about establishing a Modbus TCP connection between my ET200SP plc and a socomec...
Replies
12
Views
311
Back
Top Bottom