First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

[UDM problem] USER DEFINED MACHINE MODEL "TA" NOT ACCESSIBLE

asked Jun 19 '4

KYC_Korea gravatar image

I created a UDM "AA", but I get an error as shown below twice.

BUS 1 [NAME] MC 1 USER DEFINED MACHINE MODEL "TA" NOT ACCESSIBLE BUS 1 [NAME] MC 1 USER DEFINED MACHINE MODEL "TA" NOT ACCESSIBLE

Do you know what is problem?

I also got an error during compilation like below, but the .dll was created.

Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384 Copyright (C) Microsoft Corporation. All rights reserved. Creating C:\Users\ex.pssenvmgr\YCKim_GFM.res C:\Users\ex.pssenvmgr\TA.rc(16) : fatal error RC1015: cannot open include file 'afxres.h'. Using codepage 949 as default

ERROR compiling resource file C:\Users\ex.pssenvmgr\TA.rc. Version will not be added to DLL.

Is this a problem?

DLL is loaded correctly, and if I initialize it without loading it, I get an error message like the one below.

BUS 1 [NAME] MC 1 USER DEFINED MACHINE MODEL "TA" NOT ACCESSIBLE BUS 1 [NAME] MC 1 USER DEFINED MACHINE MODEL "TA" NOT ACCESSIBLE BUS 1 [NAME] MC 1 USER DEFINED MACHINE MODEL "AA" NOT ACCESSIBLE

What's wrong?

1 answer

Sort by » oldest newest most voted
1

answered Jun 20 '4

perolofl gravatar image

You have defined the model to be current injection model (IT=1) or a metering model (IT=2).

This means that the model shall also be called from CONET/TBLCNT. For this, a secondary entry point is needed in the code where the first letter is replaced with "T", i.e. in your case model "AA" needs an entry point called "TA".

See POM, Chapter Model Writing - "Coordinated Call Models" and "Writing a Basic Load Model".

link

Comments

Thank you. I tried ENTRY TA(MC,ISLOT) and it worked fine. Have a great day

KYC_Korea gravatar imageKYC_Korea (Jun 22 '4)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Jun 19 '4

Seen: 308 times

Last updated: Jun 20 '24