[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,827
Hi! Is it possible to open the project I'm creating on a latest version? I'm working on TIA Portal V19, but the customer needs it on v18.
Replies
9
Views
178
Hi everyone I want to use a vm to run tia portal v13 to v15 What would you suggest, Windows an specification for each portal . Thanks will...
Replies
4
Views
108
Hi PLC people, think about this scenario: The PLC is somehow connected to the same network with the facilities` network. Then someone connects to...
Replies
2
Views
141
Hello, good morning, I have been having two problems with the Tia Portal software. The first is that I have installed it on my computer and...
Replies
5
Views
225
Back
Top Bottom