# Cannot save the module to the PC using PCSDK

**URL:** https://tech-community.robotics.abb.com/t/cannot-save-the-module-to-the-pc-using-pcsdk/9837
**Category:** Developer Tools
**Created:** [December 4, 2020, 9:10am UTC](https://tech-community.robotics.abb.com/t/cannot-save-the-module-to-the-pc-using-pcsdk/9837 "2020-12-04T09:10:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mkt](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@mkt](https://tech-community.robotics.abb.com/u/mkt)
#### Post date: [December 4, 2020, 9:10am UTC](https://tech-community.robotics.abb.com/t/cannot-save-the-module-to-the-pc-using-pcsdk/9837/1 "2020-12-04T09:10:03Z")

</div>

Hello,  
I’m trying to save the module from the REAL controller using PCSDK.  
My code is simple and I’m pretty sure that there is no error there:

using (Mastership.Request(\_controller))  
{  
var \_module = \_tasks[0].GetModule(“aa\_refPositions”);  
\_module.SaveToFile(Paths.REFPOS\_FILE\_PATH);  
}

If executed with the virtual controller it works as expected - saving the module  
under the provided path.  
If executed with the real controller I get the following exception:

C004A000 : General file handling error.  
ERROR: rdh\_rapid.cpp[7851]: org\_code: -530 new\_code: 0xc004a000;  
Url:/RAPID/T\_ROB1 Cmd:SET Prop:SaveModule Args:-File “C:/Users/domen/Documents/HyCoEx/Config/aa\_refPositions.mod” -Name aa\_refPositions Elapsed:6 CurrentCmds:0  
History:  
-00:00:10.4780016 [127] SendCommand url: cmd:Get prop:CurrentMaster2 arg:-Domain RAPID  
-00:00:10.4760016 [127] status:SYS\_CTRL\_S\_OK data:-Status NoMaster  
-00:00:10.4750010 [128] SendCommand url: cmd:Set prop:RequestMaster2 arg:-Domain RAPID -Uid 3  
-00:00:10.4730026 [128] status:SYS\_CTRL\_S\_OK data:  
-00:00:10.4730026 [129] SendCommand url:/RAPID/T\_ROB1 cmd:Get prop:Childs arg:-mark 0 -noelts -1 -cc 0  
-00:00:10.4630015 [129] status:SYS\_CTRL\_S\_OK data:-noelts,all,mark,cc 29,1, 29, 0 Tools;SysMod aa\_refPositions;P…  
-00:00:09.5180004 [130] SendCommand url: cmd:Get prop:Mode arg:  
-00:00:09.5150008 [130] status:SYS\_CTRL\_S\_OK data:AUTO  
-00:00:09.5140008 [131] SendCommand url: cmd:Get prop:CurrentMaster2 arg:-Domain CFG  
-00:00:09.5120021 [131] status:SYS\_CTRL\_S\_OK data:-Status HeldRemote -Uid 3 -app “PCSDK” -loc “DESKTOP-62NEOBJ” -alias “HyCoEx”  
-00:00:09.5120021 [132] SendCommand url: cmd:Set prop:ReleaseMaster2 arg:-Domain CFG -Uid 3  
-00:00:09.5099973 [132] status:SYS\_CTRL\_S\_OK data:  
-00:00:09.5099973 [133] SendCommand url: cmd:Get prop:CurrentMaster2 arg:-Domain RAPID  
-00:00:09.5090022 [133] status:SYS\_CTRL\_S\_OK data:-Status HeldRemote -Uid 3 -app “PCSDK” -loc “DESKTOP-62NEOBJ” -alias “HyCoEx”  
-00:00:09.5080018 [134] SendCommand url: cmd:Set prop:ReleaseMaster2 arg:-Domain RAPID -Uid 3  
-00:00:09.5059999 [134] status:SYS\_CTRL\_S\_OK data:  
-00:00:00.0119998 [135] SendCommand url:/RAPID/T\_ROB1/aa\_refPositions cmd:Get prop:ModInfo arg:  
-00:00:00.0089962 [135] status:SYS\_CTRL\_S\_OK data:000000  
-00:00:00.0070003 [136] SendCommand url:/RAPID/T\_ROB1 cmd:SET prop:SaveModule arg:-File “C:/Users/domen/Documents/HyCoEx/Config/aa\_refPositions.mod” -Name aa\_refP…  
00:00:00 [136] status:SYS\_CTRL\_E\_GENERAL\_FILE\_ERROR data:ERROR: rdh\_rapid.cpp[7851]: org\_code: -530 new\_code: 0xc004a000;

Path is 100% good, it points to the folder that exists, and it works just fine when saving the file from the virtual controller.

I think that the Real controller doesn’t have permission to modify anything on the hard drive (it’s recognized as an external device, without any access to the Windows file system?).

I changed access to the folder, I set it to allow access for Everyone. I made a folder shared in the private network. What else should I do?

Any other operations on the real controller through PCSDK work as expected (loading modules, starting RAPID etc.)

---

<div class="post-metadata">

### Author: ![Nils\_Olofsson](https://avatars.discourse-cdn.com/v4/letter/n/e495f1/32.png) [@Nils\_Olofsson](https://tech-community.robotics.abb.com/u/Nils_Olofsson)
#### Post date: [December 4, 2020, 11:54am UTC](https://tech-community.robotics.abb.com/t/cannot-save-the-module-to-the-pc-using-pcsdk/9837/2 "2020-12-04T11:54:28Z")

</div>

Hello,  
Did you make sure that you are logged onto the controller with a user with the correct user permits?

---

<div class="post-metadata">

### Author: ![mkt](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@mkt](https://tech-community.robotics.abb.com/u/mkt)
#### Post date: [December 4, 2020, 3:15pm UTC](https://tech-community.robotics.abb.com/t/cannot-save-the-module-to-the-pc-using-pcsdk/9837/3 "2020-12-04T15:15:19Z")

</div>

Yes, im pretty sure about that - im logging as DefaultUser (the same for virtual cell). I checked the permissions in RS and DefaultUser has all possible permissions I think.
