Then you read buffer 668h (host parameter status, 0=OK, when not zero, indicates alarm code) only when Y27 is on (and this is prohibited address.which never get's set anyway unless it's done by hand.which shouldn't happen because it's prohibited and results can be unexpected).
![setup cc-link gx works 2 setup cc-link gx works 2](https://i.ytimg.com/vi/iGl01Bfp-6s/maxresdefault.jpg)
There are some minor issues like addressing overlaps (SEG instruction starts at Y18 and reads 16 consecutive bits, 8 of which are in the Y20-27), etc.
#Setup cc link gx works 2 manuals#
Imho, it should look something like this:īottom line - it should be readable without using manuals for reference. (specially when everything is jammed into one ladder file, like wiht A or FX CPUs). there are still some serious problems with comments and I just don't have time or energy to reverse engineer.įor example commented program should include comments of ALL used devices (memory locations), code sections should have statements etc. For example you are writing to Y2C and you are reading Y21, 22, etc (just reading them is ok but it indicates problem with your code). You are using addresses which are explicitly prohibited (See page 3-7 or 42/280 of IB-NA-66721-J). I don't remember using CC-Link on so old CPU but since your program lacks any comments I will not even try reading it. Here are manuals for CC-Link master that you haveĪJ61BT11 A1SJ61BT11 CCLink System Master (Local Type) Users Manual Ī1SJ61BT11 Control & Communication Link System Master_Local Module Users Manual(Hardware)
![setup cc-link gx works 2 setup cc-link gx works 2](http://www.mymitsubishisupport.co.za/wp-content/uploads/2018/02/54-172-1024x576.png)
I guess this is your only slave so Master will have address 0 and slave 1, and B-Rate (communication speed over CC-Link) will be same on both devices etc. Since CC-Link is bus type network, it is important to have properly set addresses and baud rate on both master and all slaves. On page 4-9 (55/264) of the later one is example wiring diagram (top of the page is CC-Link, and below that is crossover cable to connection to DTE device for example). AJ65BTD75P2S3 Positioning Module Users Manual (Hardware) ĪJ65BTR2 RS232C Interface Module Users Manual