You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old April 24th, 2018, 01:38 PM   #1
travispedley
Member
United States

travispedley is offline
 
Join Date: May 2012
Location: Sanford, NC
Posts: 91
Schneider Unity Pro DDT

Ok, M3040 with NOC0401
Fanuc Ethernet/IP Slave (20Bytes In/Out)
DDT created and defined by DTM as Array of BYTE(0..19)
I created my own DDT that breaks down the 20 bytes of data into data types that are useable by me (CycleStart, FaultReset, etc.) My DDT is 20 bytes long using a mixture of BOOL and BYTES.

How in the world do I do what I've been doing in AB for years?

just copy the 20 bytes of input data from the fanuc to my DDT?
In 1 instruction. i realize i could hardcode all 96 of my I/O but damn, I really don't want to.
  Reply With Quote
Old April 24th, 2018, 01:50 PM   #2
GTUnit
Member
United States

GTUnit is offline
 
Join Date: Oct 2009
Location: Orange, CA
Posts: 371
maybe this helps:
http://www.plctalk.net/qanda/showthread.php?t=85103
  Reply With Quote
Old April 24th, 2018, 02:57 PM   #3
travispedley
Member
United States

travispedley is offline
 
Join Date: May 2012
Location: Sanford, NC
Posts: 91
Looks like it should work, thanks for the help!!
FYI, I called Schneider before i posted this question, they told me I just had to map everything by hand or use BYTE_TO_BIT. I should have known better and just came here first.
  Reply With Quote
Old April 24th, 2018, 03:31 PM   #4
Lare
Member
Finland

Lare is offline
 
Join Date: Jan 2006
Location: Finland
Posts: 1,048
this is quick example of array converting without need of located memory areas, should work also for bytes.
It is maybe possible on DDT side that you configure different data types beforehand
Attached Files
File Type: zip extract_test.zip (17.8 KB, 3 views)

Last edited by Lare; April 24th, 2018 at 03:33 PM.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Schneider Unity Pro XL v7 Problem Dan0218 LIVE PLC Questions And Answers 4 March 13th, 2017 02:39 AM
Schneider Unity equivalent of RSLogix DDT instuction sarahc LIVE PLC Questions And Answers 7 May 25th, 2016 07:10 PM
Schneider Momentum & Unity Pro MATT116 LIVE PLC Questions And Answers 2 February 24th, 2015 09:57 AM
Schneider Unity Pro - DFB / DDT / Arrays majorv LIVE PLC Questions And Answers 9 February 16th, 2015 06:12 PM
Schneider - Unity Pro - Citect etc BobB LIVE PLC Questions And Answers 11 January 15th, 2010 04:13 PM


All times are GMT -5. The time now is 10:25 AM.


.