Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 01:15:31 PM
Home Help Login Register
News: Any Problems or Experience with Industrial Robots ?
Register and place your Question / Answer to worldwide Robotexperts right here !

+  Robotforum | Support for Robotprogrammer and Users
|-+  Industrial Robot Help and Discussion Center
| |-+  Yaskawa Motoman Robot Forum (Moderators: Fabian Munoz, Napierian)
| | |-+  Set value Register
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Set value Register  (Read 948 times)
Paolo
Full Member
***
Offline Offline

Posts: 214


« on: January 22, 2011, 02:05:14 PM »

hi, how do I set a registry value in the Ladder?
Logged
95devils
Sr. Member
****
Offline Offline

Posts: 325


« Reply #1 on: January 22, 2011, 08:39:06 PM »

You can either manually type the value into the M-Register that you are going to use in the ladder. To do this you would go to [IN/OUT] from the Main Menu, then [M Register].  Navigate to the M Register address you want.  Cursor to the little white box, press SELECT, and type in the value you want.

If you want a robot job to write a value into the M Register, then you use the SETREG instruction that is found in the INFORM LIST under ARITH.
Logged

Alcohol:  The cause and solution to all life's problems
Paolo
Full Member
***
Offline Offline

Posts: 214


« Reply #2 on: January 23, 2011, 04:38:55 PM »

If I want to add value to a register used in the Ladder through statement setreg in a JOB, this is possible?
Logged
95devils
Sr. Member
****
Offline Offline

Posts: 325


« Reply #3 on: January 23, 2011, 11:12:13 PM »

Sure, use the GETREG instruction in your job.  The results are in an I variable, do your math, get the result into an I variable.  Use the SETREG instruction to write the value into the M Register in the ladder.
Logged

Alcohol:  The cause and solution to all life's problems
Paolo
Full Member
***
Offline Offline

Posts: 214


« Reply #4 on: January 24, 2011, 12:46:24 PM »

Setreg because when I use to set the value in the register of Ladder shows me warning TAK 4654 # 0 setreg INST OF EXECUTION WRONG?
Logged
Paolo
Full Member
***
Offline Offline

Posts: 214


« Reply #5 on: January 24, 2011, 07:27:16 PM »

When I write the value in the M register Ladder me shows alarm 4654  TASK#0   WRONG EXECUTION OF SETREG INST
                                                                                                                                 [2]

Why?  kopfkratz      

Using statement SETREG to do this                                                                                                   
« Last Edit: January 24, 2011, 07:29:56 PM by Paolo » Logged
moto
Newbie
*
Offline Offline

Posts: 43


« Reply #6 on: January 24, 2011, 08:13:37 PM »


Once you have the value in the I variable, you use the setreg as 95devils suggested as below.

SETREG MREG#(0) I000

Hope this helps.
Logged
Paolo
Full Member
***
Offline Offline

Posts: 214


« Reply #7 on: January 25, 2011, 07:13:08 AM »

When I use statement SETREG MREG(10) I010 show me alarm 4654  TASK#0   WRONG EXECUTION OF SETREG INST  
                                                                                                                                 [2]
Why?

 

which means TMR/CNT ?
« Last Edit: January 25, 2011, 07:16:24 AM by Paolo » Logged
Robocop
Newbie
*
Offline Offline

Posts: 27


« Reply #8 on: January 25, 2011, 08:01:45 AM »

When I use statement SETREG MREG(10) I010 show me alarm 4654  TASK#0   WRONG EXECUTION OF SETREG INST  
                                                                                                                                 [2]
Why?

 
You don't have # after MREG


which means TMR/CNT ?

TMR=timer
CNT=counter

Have you read the Concurrent IO manual??
Logged
moto
Newbie
*
Offline Offline

Posts: 43


« Reply #9 on: January 25, 2011, 09:36:36 AM »


It looks like you can't modify as the Mreg is being used else where by a TMR or CNT command. You will need to use another Mreg i guess.
Logged
Paolo
Full Member
***
Offline Offline

Posts: 214


« Reply #10 on: January 25, 2011, 11:02:36 AM »

I'm sorry but I'm a beginner with the Motoman robot ...
I try to check ...
Thank you very much
Logged
Paolo
Full Member
***
Offline Offline

Posts: 214


« Reply #11 on: January 25, 2011, 11:07:26 AM »

Using Mreg in statement ADD !
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!