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,171
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
1
Views
43
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
68
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
136
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
214
Back
Top Bottom