TIA Portal, bit to word... ?

userxyz

Member
Join Date
May 2002
Location
any
Posts
2,768
Hello,

I need to trigger bits in a Word.
This for a 315 CPU in TIA Portal, placing .b0 behind it will not work :)

w.png

Thanks in advance,
Kind regards,
C
 
Hmmm

This is how I made it:

Code:
      L     #TempWord
      LAR1
      A     "STD VENTIEL VISU".EVP001."ALARM n"
      = [ AR1 , P#0.0 ]
      A     "STD VENTIEL VISU".EVP001."ALARM p"
      = [ AR1 , P#0.1 ]
      A     "STD VENTIEL VISU".EVP001."ALARM p n"
      = [ AR1 , P#0.2 ]
      A     "STD MOTOR VISU".M001."DRIVE ALARM"
      = [ AR1 , P#0.3 ]
      A     "STD MOTOR VISU".M002."DRIVE ALARM"
      = [ AR1 , P#0.4 ]
      L     #TempWord
      T     "ALARM INTERFACE"."Alarmwoord Unit 1"

This for making Alarm in a Comfort Panel... Integrated ??
 
TIA portal references use the following layout:

Word
.W0

Byte
.B0

Bit
.X0

As far as I know, the slice style addressing only works on the newer PLC's. If he is using a 300, he needs to do it the old fashioned way.

Combo,

There are two main ways I see.


  1. Create a Struct with all 16 alarm bits (or an array) to access the individual bits. BlkMove the Struct into the Alarm word you want the HMI to look at.
  2. Use Absolute addressing, which is messy
 
Thanks

Thanks guys.

As far as I know, the slice style addressing only works on the newer PLC's. If he is using a 300, he needs to do it the old fashioned way.

Combo,

There are two main ways I see.


  1. Create a Struct with all 16 alarm bits (or an array) to access the individual bits. BlkMove the Struct into the Alarm word you want the HMI to look at.
  2. Use Absolute addressing, which is messy
 

Similar Topics

I have a IPC427E, TIA Portal V15.1 SP1, WinCC RT Professional. This is a touch screen application, and I want set a bit on Click, and reset on...
Replies
6
Views
3,162
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
93
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
194
Hello all! So I have one project with a S7-1214 and a MTP1500 "Project1" and one project with another S7-1214 "Project2". Both of these PLC:s need...
Replies
6
Views
119
Hello, i am using profibus as communication between plc and fanuc arm. I can easily send inputs from plc to arm, but i can't monitor any outputs...
Replies
0
Views
48
Back
Top Bottom