Ask Your Question
0

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

asked 2024-06-19 11:01:20 -0500

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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2024-06-20 02:39:51 -0500

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".

edit flag offensive delete link more

Comments

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

KYC_Korea gravatar imageKYC_Korea ( 2024-06-21 22:19:55 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2024-06-19 11:01:20 -0500

Seen: 134 times

Last updated: Jun 20