Schneider TM221 clear MW addresses

Edmhydraulics

Member
Join Date
Apr 2014
Location
Beaumont
Posts
173
Hey all, here's a simple question, I am writing to a range of MW addresses %MW103 to %MW194, I want to clear all of these to a value of 0 with a bit from the HMI.
I have the following:
%MW4:=91

%MW103[%MW4]:=0

But this doesn't seem to be working, any thought. I know it's simple, but I come from the structured text world and getting my syntax correct can be difficult.
 
you are using indexed object, and writing zero to address %MW103+91 = %MW194

Command what you are looking for is %MW103:91:=0

p.s search tables from help files)
 
Last edited:

Similar Topics

Everything was working fine, but suddenly CPU went into error mode, and the ERR and TER LEDs lit up. Now I can't download or connect with the PLC...
Replies
0
Views
41
Hello all, I am wanting to update the system clock via NTP in the M580/M340. I'm aware that we are able to connect to a NTP in the controller...
Replies
4
Views
131
I am using Schneider elau pack drive servo motor ISH-100. I am facing the problem that On the ISH -100 red light is blinking and pack drive C-600...
Replies
0
Views
63
Hello, As part of our project, we are using an M241 controller. This controller interfaces with an industrial computer and a router via a switch...
Replies
2
Views
106
Hello, I need to access the bits from the fire system control panel through RS-485. So, I used Read Var block to read from the panel...
Replies
0
Views
187
Back
Top Bottom