-
Content count
5 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout jake4eng
-
Rank
Newbie
-
Hello All! I am having difficulties mapping register values. In the TURCK register there are 24 unique register bytes corresponding to different value registers (8bit x 24). These 24(8bit) bytes were mapped into RSLOGIX 5000 as 12(16bit) INT words ....INT[12] .. This means there are 2 bytes (2 unique register values) inside each INT word. WHAT I NEED TO ACHIEVE: 1. (BLUE outline in drawing) Write/Map a value of "32" into byte 7 of the TURCK register so effectively starting at INT[5].8 in RSLOGIX Drawing1-Model.pdf This will enable the value of CNT1 (encoder count) to be registered in bytes 8-11... 2. (PINK outline in drawing) READ/MAP the values registered in bytes8,9,10 and 11(4x8bits) into a SINGLE 32bit INT value which will tell me the CNT1 value of my encoder. I am having problems when ever I try to COP a value of 32 (no matter what kind of array it's sourced from) into INT[5].8 & I haven't tried to map/read the values of bytes 8-11 CAN SOMEONE PLEASE HELP EXPLAIN HOW TO ACHIEVE THIS?! Thanks for your input EVERYONE! :D Drawing1-Model.pdf
- 2 replies
-
- turck
- register mapping
- (and 9 more)
-
Converting 16bit Word (INT) into REAL Decimal Number (Via SINT[2])
jake4eng posted a topic in Allen Bradley / Rockwell Automation
I am having problems expressing an ANALOG OUTPUT 16bit INT word (0-10V Proportional Valve Voltage) as a REAL decimal number. From my understanding the word is divided into 2 (8bit) bytes...one representing the whole number value and the second the decimal value. We're using BL20 I/O Module (german therefore LSB first I believe). I need to MOV/COP (read) the value, CONVERT it into a REAL number, Manipulate the REAL VALUE, then CONVERT the MANIPULATED REAL Value back into a 16bit INTEGER & WRITE the NEW Integer Value into Proportional Valve Voltage Location. I also have a similar situation regarding our Incremental Encoder. In this scenario the pulse count is obviously a whole number (no decimals) where 4 (16bit) bytes represent the REAL Count Value.. I have read other posts on similar conversion topics and understand the general premise, but I'm having problems specifying write parameters.. - i.e. writing bits 0-7 from an INT into SINT[0] (HIGH BYTE representing the whole # value? ) and writing bits 8-15 into SINT[1] (LOW BYTE representing the decimal value) THEN CONVERTING into REAL # (Voltage fed to Proportional Valve) ...manual section... page 282&283 http://pdb2.turck.de/repo/media/_us/Anlagen/d300717.pdf - i.e. writing bits 0-15 from INT[0] , INT[1] , INT[2] and INT[3] into a LINT (not sure if correct) THEN CONVERTING into REAL # (Encoder Count) ...manual section... page 17 (current count value) http://pdb2.turck.de/repo/media/_en/Anlagen/D301224.pdf ANY SUGGESTIONS WOULD BE GREATLY APPRECIATED... project file if interested.. https://sites.google.com/site/lyncedrgb/eva/untitledpost-2/StellaPLC.ACD -
Hello All! This is my first post so please give my descriptions some lee-way please:P I am having trouble finding a solid example of ladder logic which integrates a: PowerFlex (755 in this case) Rotary Incrematal Encode ( or any encoder for that matter) A Prox to reset the resolution at specific points along the axis Also, can I use the standard Motion Instructions (MAJ,MAS,MAM etc) to control the movement sequences of the PowerFlex or are they only meant for use with Servos? I am working on automating a Lumber Treatment Process. The movements will have to move tens of thousands of pounds.. Therefore I would like to use the PowerFlex as a Torque Limiter to control a 15HP squirrel cage motor on a massive gear reduction. I have the distances and pulses per distance traveled from the mechanical engineering guys.. I'm just having problems integrating! After using the Setup Wizard for PowerFlex how can I go about actually inserting movement instructions for the drive into my ladder logic? Some more info on different movement profiles.. I've also included my attempt at trying to piece this together thus far.. Any input would be welcome! (StellaPLC) https://sites.google.com/site/lyncedrgb/eva/rslogix The actual drive and PLC are not available to be me at this time.. could this be an issue while trying to write this motion control program? (obviously not testing & troubleshooting portion) Tugger Speeds Freq. ACCEL TIME DECEL Time E-Stop Decel Torque % of max Notes VERY SLOW 15HZ 0.5s 0.5s 0s 100 SLOW 30HZ 1s 1s 0s 100 Restricted to slow speed within 3m of ends of transfer deck HAUL 60HZ 5s 5s 2.5S 100 Max torque limit 250% of FLA EMPTY TRAVEL 120HZ 2s 0.5S 2.5S 30 Torque Limited to 25%